Commit Graph

18 Commits

Author SHA1 Message Date
CasVT
aef883e0da Added 2FA in the backend 2025-08-30 23:12:50 +02:00
CasVT
d4d6d0973c Clean expired API keys every 24h
If someone logs in, then never logs back in while the key expires, then the key is stored in the dict and never deleted. So every 24 hours delete all keys that have been expired for more than 24 hours. Avoids a memory leak-like situation.
2025-08-26 02:30:01 +02:00
CasVT
515ef665a2 Changed what's stored in global context vars for API 2025-08-26 01:52:01 +02:00
CasVT
b68284530b Changed generation and hashing of API keys
Moved from generating API keys using os.urandom to secrets.token_hex. Moved from hashing the keys using stdlib.hash to hashlib.sha256.
2025-08-26 00:50:46 +02:00
CasVT
42891f5f32 Moved API inputs to context globals 2025-08-25 23:29:16 +02:00
CasVT
6244aff737 Improved type hinting in api.py 2025-08-25 22:49:35 +02:00
CasVT
bafd8abe6a Refactored users.py 2025-08-18 17:05:35 +02:00
CasVT
b5387a0635 Moved API prefixes from Server to Constants 2025-08-12 16:57:13 +02:00
CasVT
8739e1ab95 Refactored start type handling 2025-08-06 18:46:48 +02:00
CasVT
258c3db83d Refactored settings.py 2025-08-03 13:24:06 +02:00
CasVT
51e2891020 Slightly refactored base code and updated docstrings 2025-08-01 16:58:13 +02:00
CasVT
39847f18cd Added backend for resetting setting values 2025-05-17 19:59:00 +02:00
CasVT
a5ec5c5427 Added support for cron schedules in backend (#83)
Fully functioning backend (and API) support for cron schedules. Frontend is coming later.
2025-05-04 18:02:49 +02:00
CasVT
9a91955ff4 Added timezone change handling (#89) 2025-05-04 16:20:11 +02:00
CasVT
59ac864c16 Added DB backup system 2025-04-30 13:52:31 +02:00
CasVT
cd400bb559 Added option to enable/disable reminders (#77) 2025-04-24 21:10:28 +02:00
CasVT
3892b9754e Refactored input validation 2025-04-23 19:55:41 +02:00
CasVT
0cbb03151f Refactored backend (Fixes #87) 2025-04-22 23:29:35 +02:00