Commit Graph

19 Commits

Author SHA1 Message Date
ca42a979c1 Fixed catastrophic bug caused by rows not being closed on db ver check 2025-02-22 16:24:58 +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
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
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
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