From e2845c469057efa3e04cca12e52e0385945e4668 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 27 Dec 2018 20:46:33 +0100 Subject: [PATCH] No more pseudo with uppercase --- users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index a198cfb5..9f17615d 100755 --- a/users/models.py +++ b/users/models.py @@ -94,7 +94,7 @@ from preferences.models import OptionalMachine, MailMessageOption def linux_user_check(login): """ Validation du pseudo pour respecter les contraintes unix""" - UNIX_LOGIN_PATTERN = re.compile("^[a-zA-Z][a-zA-Z0-9-]*[$]?$") + UNIX_LOGIN_PATTERN = re.compile("^[a-z][a-z0-9-]*[$]?$") return UNIX_LOGIN_PATTERN.match(login)