diff --git a/users/models.py b/users/models.py index 472e02ba..c7503d75 100644 --- a/users/models.py +++ b/users/models.py @@ -58,7 +58,7 @@ def remove_user_room(room): def linux_user_check(login): """ Validation du pseudo pour respecter les contraintes unix""" - UNIX_LOGIN_PATTERN = re.compile("^[a-zA-Z0-9_-]*[$]?$") + UNIX_LOGIN_PATTERN = re.compile("^[a-zA-Z0-9-]*[$]?$") return UNIX_LOGIN_PATTERN.match(login)