262536135d
Still working through messages and notifications.
2025-10-30 17:22:52 +00:00
8650b1fd63
Continued work on messages and notifications.
2025-10-30 11:11:22 +00:00
b41e92629b
Continued work around getting messages and notifications cleaned up since moving to MySQL and changing to Gin, SCS, NoSurf.
2025-10-29 15:22:05 +00:00
0b2883a494
todo comment
2025-10-29 15:21:20 +00:00
07f7a50b77
ToDo job
2025-10-29 15:19:07 +00:00
f458250d3a
correct package name
2025-10-29 11:38:05 +00:00
f2cb283158
todo for a later date
2025-10-29 11:37:50 +00:00
b9bc29d5bc
fix loading of ticket add page
2025-10-29 11:37:35 +00:00
b6b5207d43
Fleshing out some routes from notifications and messages
2025-10-29 10:43:48 +00:00
34918d770f
Fix for tim.Time change to tickets model includes date helper.
2025-10-29 10:00:58 +00:00
eba25a4fb5
comment model.
2025-10-29 09:47:51 +00:00
e6654fc1b4
User specific lottery ticket creation
2025-10-29 09:47:35 +00:00
ddafdd0468
current duplicate check uses IS ? which is fragile in MySQL. Using the NULL-safe equality operator <=> instead.
2025-10-29 09:29:51 +00:00
5fcb4fb016
change the field to time.Time for correctness
2025-10-29 09:29:10 +00:00
71c8d4d06c
fix typo
2025-10-29 08:54:19 +00:00
244b882f11
Code documentation
2025-10-29 08:36:10 +00:00
72e655674f
Remove redunant ping and update comments.
2025-10-28 22:42:58 +00:00
f1e16fbc52
Logged-in users don’t see login/signup pages
2025-10-28 22:26:15 +00:00
aec8022439
Add additional columns to aufit_login for session tokens. fixed requireAuth for loading of some pages as requireauth was threating a valid session as not logged in.
2025-10-28 22:22:17 +00:00
e1fa6c502e
Centralize audit SQL + writers
2025-10-28 15:26:43 +00:00
aa20652abc
Moved admin only to middleware.
2025-10-28 15:24:25 +00:00
c9f3863a25
Fix: apply schema: Error 1064 (42000)
2025-10-28 14:38:50 +00:00
29cb50bb34
Update users table and fix potential panic as fk references users before its created.
2025-10-28 14:37:05 +00:00
af581a4def
Fix ob: type not registered for interface: map[string]string & superfluous response.WriteHeader, as well as wired up to go to custom 500 messages.
2025-10-28 13:16:29 +00:00
e0b063fab0
Remove comments and update path.
2025-10-28 12:43:41 +00:00
04c3cb3851
Current config structure
2025-10-28 11:59:04 +00:00
86be6479f1
Stack of changes to get gin, scs, nosurf running.
2025-10-28 11:56:42 +00:00
07117ba35e
No longer required.
2025-10-24 13:19:55 +01:00
ac1f6e9399
refactor(template): delegate handler-level RenderError to helpers package
...
- Moved core RenderError logic to internal/helpers/template/error.go
- Added thin wrapper method in internal/handlers/template/error.go
- Simplified function signature (no config args, uses InitSiteMeta)
- Preserved architecture: handlers own HTTP layer, helpers supply logic
2025-10-24 13:15:12 +01:00
fb07c4a5eb
Refactoring for Gin, NoSurf and SCS continues.
2025-10-24 13:08:53 +01:00
7276903733
refactor(config): move Config struct from business layer to platform/config
...
Moved the Config struct (previously in internal/models/config.go) into internal/platform/config/types.go to align with clean architecture principles.
This change decouples runtime/infrastructure configuration from domain models:
- Configuration is an application/platform concern, not part of the business domain.
- Prevents potential circular imports between models and platform packages.
- Simplifies future integration with platform components (SCS sessions, CSRF, DB).
No functional changes to configuration loading structure and JSON schema remain the same; only the package location and imports were updated.
2025-10-24 08:35:39 +01:00
0f60be448d
Refactoring continues.
2025-10-23 21:51:15 +01:00
b098915ab9
Update import paths
2025-10-23 19:51:28 +01:00
21ebc9c34b
Refactor and remove sqlite and replace with MySQL
2025-10-23 18:43:31 +01:00
5c3a847900
Massive refactor!
2025-04-22 23:26:11 +01:00
4bb3b58ddb
Bootstrapped the creation and loading of session keys to lighten main.
2025-04-16 08:21:02 +01:00