Commit Graph

29 Commits

Author SHA1 Message Date
c9fd1c8af0 Fixed null user being returned if id not in database 2025-02-22 20:05:08 +11:00
ca42a979c1 Fixed catastrophic bug caused by rows not being closed on db ver check 2025-02-22 16:24:58 +11:00
79838b4aae Created a migration package to handle the migrations 2025-02-20 23:01:39 +11:00
a575025f1f Renamed test file for safeconn and safetx to reflect new file structure 2025-02-20 22:31:20 +11:00
4b64dccbda Updated tests to use migrations for db init for consistency 2025-02-20 20:26:26 +11:00
b238a3efa7 Made the db connection check the migration version and fail on mismatch 2025-02-20 19:16:14 +11:00
f0f285301a Moved SafeTx and SafeConn to their own files 2025-02-20 19:06:41 +11:00
46dd86cdae Added tests to ensure SIGUSR1 and SIGUSR2 will toggle db lock 2025-02-18 23:18:02 +11:00
789d1e75a7 Added tests for SafeConn and SafeTx 2025-02-18 22:49:43 +11:00
c0bbe687f9 Added timeout for acquiring global lock 2025-02-18 19:57:30 +11:00
38d47cdf63 Added check for attempting to acquire global lock 2025-02-18 10:37:57 +11:00
c2de8d254a Added proper debug logging to safeconn methods 2025-02-18 10:03:28 +11:00
b4b57c14cb Removed debugging stdout prints 2025-02-17 23:32:48 +11:00
556c93fc49 Changed to using atomics as mutex was causing deadlock 2025-02-17 23:14:13 +11:00
19f26d62a3 Removed OldConnectToDatabase 2025-02-17 21:51:09 +11:00
a8d112fdd5 Updated all code to use SafeConn and SafeTX 2025-02-17 21:39:12 +11:00
6faf168a6d Updated all code to use new SafeConn and SafeTX 2025-02-17 21:38:29 +11:00
2c61cec55c Update authentication, reauth, logout to use new transactions 2025-02-17 18:58:34 +11:00
417daf0028 Added close method to SafeConn 2025-02-17 11:53:20 +11:00
1edff49425 Made new safe connection and transaction structs to enable db locking 2025-02-17 11:44:55 +11:00
07453b0f02 Added ability for user to change their bio 2025-02-16 10:44:04 +11:00
87fe03ce9e Added bio to User and reworked file structure for user interaction 2025-02-15 13:27:10 +11:00
5616b8a248 Added user registration 2025-02-14 18:49:46 +11:00
6c02e3fe90 Added username to navbar when logged in 2025-02-13 23:14:44 +11:00
cab6be063f Switched from turso to local sqlite 2025-02-13 22:23:16 +11:00
732f8510ae Added authentication middleware 2025-02-11 23:58:15 +11:00
b2ed646ffd Added custom logging support using zerolog 2025-02-09 17:16:48 +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