mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 22:52:26 +00:00
Interdiction de l'underscore dans les pseudos pour ne pas créer de conflit dans les noms DNS
This commit is contained in:
parent
0a7c0731ad
commit
7007378623
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue