mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 09:26:27 +00:00
No more pseudo with uppercase
This commit is contained in:
parent
a6c590dc90
commit
e2845c4690
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ from preferences.models import OptionalMachine, MailMessageOption
|
||||||
|
|
||||||
def linux_user_check(login):
|
def linux_user_check(login):
|
||||||
""" Validation du pseudo pour respecter les contraintes unix"""
|
""" 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)
|
return UNIX_LOGIN_PATTERN.match(login)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue