From 70073786234a85301c8978ae25592c76d62eac57 Mon Sep 17 00:00:00 2001 From: Guillaume Goessel Date: Tue, 1 Aug 2017 13:51:59 +0200 Subject: [PATCH] =?UTF-8?q?Interdiction=20de=20l'underscore=20dans=20les?= =?UTF-8?q?=20pseudos=20pour=20ne=20pas=20cr=C3=A9er=20de=20conflit=20dans?= =?UTF-8?q?=20les=20noms=20DNS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index 472e02ba..c7503d75 100644 --- a/users/models.py +++ b/users/models.py @@ -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)