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
8d2ce27a74
commented code
2025-10-28 22:46:11 +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
76cdb96966
update signup html
2025-10-28 14:37:21 +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
ffcc340034
remove flash from layout.
2025-10-28 13:49:55 +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
4a6bfad880
readme file.
2025-10-28 12:01:52 +00:00
04c3cb3851
Current config structure
2025-10-28 11:59:04 +00:00
c911bf9151
Ignore main.exe
2025-10-28 11:57:27 +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
82f457c5a4
New packages for MySQL.
2025-10-23 19:53:06 +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
d53e27eea8
Switching to MySQL
2025-10-22 22:43:35 +01:00
752db0b89d
New statistics related models and handlers.
2025-10-22 20:58:25 +01:00
8d06a7a962
Remove log output and updated comment
2025-10-22 20:57:03 +01:00
7597fff8b1
routes.SetupStatisticsRoutes
2025-10-22 20:56:04 +01:00
58dd313703
Forgot to add draw IDs to tables.
2025-10-20 14:48:33 +01:00
e0a2e5430e
Change greeting to include user related dropdown items.
2025-04-23 15:30:23 +01:00
7d26f6cf48
Update footer so copyright start year is displayed and evaluated.
2025-04-23 15:30:02 +01:00
0634876b75
Add in context to dashboard for user to topbar loads all items & refactor for clarity of variable extraction.
2025-04-23 15:29:34 +01:00
b5f1b17684
Fix loading of tickets missing range class.
2025-04-23 11:54:45 +01:00
f9853c921d
Refactoring finalised ... I think.
2025-04-23 11:30:03 +01:00
e938828a8c
fix loading ofr login form and redirects.
2025-04-23 10:06:55 +01:00
2ce810a4dd
Refactoring cont.
2025-04-23 09:44:19 +01:00
5c3a847900
Massive refactor!
2025-04-22 23:26:11 +01:00
05bb05d45c
Move admin.go this is a storage task, updated routes to use proection
2025-04-16 10:41:06 +01:00
7f91771166
Implement a stronger, reusable session timeout
2025-04-16 10:32:34 +01:00
f7e9fe7794
make shutting down graceful
2025-04-16 10:24:54 +01:00
2440b3a668
Rewiring CSRF protection and movign some functionality to the bootstrapping stage.
2025-04-16 09:50:58 +01:00