157 Commits

Author SHA1 Message Date
cc759ec694 Fix csrf 2025-11-02 09:50:50 +00:00
f0fc70eac6 Add in mark as reaad button to list view, use ajax to preform the action without page refresh. 2025-11-02 09:11:48 +00:00
61ad033520 Fix archiving and unarchiving functionality. 2025-11-01 22:37:47 +00:00
9dc01f925a Changes to pagination and fixing archive messages in progress 2025-10-31 22:55:04 +00:00
8529116ad2 Messages now sending/loading and populating on message dropdown 2025-10-31 12:08:38 +00:00
776ea53a66 Formatting 2025-10-31 12:00:43 +00:00
5880d1ca43 Fix reading of messages. 2025-10-31 12:00:08 +00:00
da365aa9ef Remove unused functions. 2025-10-31 11:57:39 +00:00
5177194895 Add sender 2025-10-31 09:45:20 +00:00
a7a5169c67 Fix model issues. 2025-10-30 22:19:48 +00:00
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
5520685504 minor update to footer. 2025-10-29 15:21:07 +00:00
e2b30c0234 minor formatting and text 2025-10-29 15:19:24 +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
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