Refactored users.py

This commit is contained in:
CasVT
2025-08-18 17:05:35 +02:00
parent 6da1d3b2f6
commit bafd8abe6a
6 changed files with 86 additions and 87 deletions

View File

@@ -59,7 +59,7 @@ class Constants:
ADMIN_USERNAME = "admin"
ADMIN_PASSWORD = "admin"
INVALID_USERNAMES = ("reminders", "api")
INVALID_USERNAMES = ("", "reminders", "api")
USERNAME_CHARACTERS = 'abcedfghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.!@$'
CONNECTION_ERROR_TIMEOUT = 120 # seconds