limit username length

This commit is contained in:
David Rodenkirchen
2024-08-28 22:31:04 +02:00
parent e3359229ec
commit 2326907141
3 changed files with 9 additions and 2 deletions
@@ -12,6 +12,7 @@ class NameNotAllowedError(Exception):
class UserService:
ALLOWED_USER_NAME_SYMBOLS = ascii_letters + digits + "!#$%&*+,-./:;<=>?[]^_{|}~"
MAX_USERNAME_LENGTH = 14
def __init__(self, db_service: DatabaseService) -> None:
self._db_service = db_service