Browse Source

Merge branch 'upper_case_pseudo' into 'dev'

No more pseudo with uppercase

See merge request federez/re2o!369
typo_and_trad_regeration
klafyvel 7 years ago
parent
commit
201b87f38e
  1. 2
      users/models.py

2
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)

Loading…
Cancel
Save