Commit Graph

104 Commits

Author SHA1 Message Date
fafb9b436f Fixed static file embedding 2025-02-16 17:59:20 +11:00
f9e17211ce Merge pull request #2 from Haelnorr/tests
Updated tests to middleware modules
2025-02-16 15:17:44 +11:00
31f1b83da4 Added page protection and reauthentication tests 2025-02-16 15:15:52 +11:00
deaeddb533 Made authentication test more robust 2025-02-16 14:18:36 +11:00
9994bed47e Fixed nil pointer derefence due accessing account page if cookie not set 2025-02-16 13:54:44 +11:00
1dca9215d3 Merge pull request #1 from Haelnorr/accountpage
Basic account page completed
2025-02-16 12:51:08 +11:00
840c595cf5 Made bio charcount darker 2025-02-16 12:40:31 +11:00
97404fff1b Added change password functionality 2025-02-16 12:38:07 +11:00
ec3d34b86e Made account page remember what subpage user was on using cookies 2025-02-16 12:30:34 +11:00
cb6f4184f8 Added SetCookie method to cookies package 2025-02-16 12:30:19 +11:00
fa64b05415 Refactored alpinejs in forms for better maintainability 2025-02-16 11:26:57 +11:00
07453b0f02 Added ability for user to change their bio 2025-02-16 10:44:04 +11:00
42ea74fd63 Added reauthentication (token freshness) and protected username change 2025-02-15 20:12:30 +11:00
6bee6edd16 Modified account page to be mobile friendly 2025-02-15 14:32:15 +11:00
89e3df6862 Added ability to change username 2025-02-15 13:28:24 +11:00
87fe03ce9e Added bio to User and reworked file structure for user interaction 2025-02-15 13:27:10 +11:00
eaf40b3d91 Fixed cursor on profile button hover 2025-02-14 23:19:26 +11:00
d53114cc20 Added account page with subpage select 2025-02-14 23:15:51 +11:00
ea4dd2a407 Added page protection for unauthorized access 2025-02-14 19:51:40 +11:00
5616b8a248 Added user registration 2025-02-14 18:49:46 +11:00
5c8bec0ad2 Added logout functionality and client error message for 500 status codes 2025-02-14 17:40:09 +11:00
eff06c0da6 Added dropdown to profile button 2025-02-14 13:46:52 +11:00
a0e7f77843 Added option to toggle gzip as it causes air browser refresh to break 2025-02-13 23:59:08 +11:00
6c02e3fe90 Added username to navbar when logged in 2025-02-13 23:14:44 +11:00
15c2dcc46f Added gzip middleware 2025-02-13 22:23:35 +11:00
cab6be063f Switched from turso to local sqlite 2025-02-13 22:23:16 +11:00
62111df6c5 Added schema.sql and testdata.sql, moved sql out of tests package 2025-02-13 20:30:53 +11:00
5b1532b86d Fixed theme selector incorrectly showing dark mode on first visit 2025-02-13 10:48:29 +11:00
2d52084fa7 Added test capability and tests for authentication middleware 2025-02-12 21:23:13 +11:00
ca92d573ba Changed tester command from 'make test' to 'make tester' 2025-02-12 17:35:57 +11:00
1253c6499d Added config options for http request timeouts 2025-02-12 12:48:10 +11:00
e605e6437b Minor fix to theme rendering and token parsing 2025-02-12 11:39:21 +11:00
732f8510ae Added authentication middleware 2025-02-11 23:58:15 +11:00
97aabcf06f Added middleware to let excluded files skip middleware chain 2025-02-11 19:37:39 +11:00
750de24fd1 Set token cookies on user login 2025-02-10 23:04:30 +11:00
e73805a02d Moved config and finished JWT module 2025-02-10 22:10:03 +11:00
04049bb73a Added TTL to tokens 2025-02-10 17:36:13 +11:00
e46a55e76d Added parsing of tokens 2025-02-10 12:19:49 +11:00
418cff1c4a Added logging to loginform and added loading feedback for user on submit 2025-02-09 18:57:27 +11:00
378840fe24 Hid requests for output.css and favicon from logging 2025-02-09 17:46:35 +11:00
49d9806bd6 Converted logging middleware to use new logger 2025-02-09 17:38:35 +11:00
b2ed646ffd Added custom logging support using zerolog 2025-02-09 17:16:48 +11:00
68754991c8 Added reminder to tester to avoid tracking changes 2025-02-09 00:53:20 +11:00
25868becf3 Added documentation to functions and basic JWT generation 2025-02-09 00:48:30 +11:00
597fc6f072 Added database support and update login to utilize db 2025-02-08 19:39:44 +11:00
a842d09f96 Added configuration from environment variables 2025-02-08 16:27:33 +11:00
1004dc9563 Added basic login functionality to login form 2025-02-08 15:29:17 +11:00
5a93ef81dd Added login form html and styling 2025-02-06 23:28:13 +11:00
dfbf3d1c79 Added footer 2025-02-06 16:01:00 +11:00
399cd43626 Refactored navbar and added error page 2025-02-06 14:24:23 +11:00