Commit 201b87f3 authored by klafyvel's avatar klafyvel

Merge branch 'upper_case_pseudo' into 'dev'

No more pseudo with uppercase

See merge request federez/re2o!369
parents a6c590dc e2845c46
Pipeline #1678 canceled with stage
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment