From dd1744999a929f7e6bcf3c9deb0d869eb2ea27d1 Mon Sep 17 00:00:00 2001 From: bos Date: Mon, 4 Jun 2007 00:08:18 +0200 Subject: [PATCH] Les logins peuvent contenir des "-" darcs-hash:20070603220818-c992d-225629edd07adabc7df384c696b0de41b59120a2.gz --- intranet/Root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intranet/Root.py b/intranet/Root.py index 43f0c41f..b215e3c0 100755 --- a/intranet/Root.py +++ b/intranet/Root.py @@ -139,7 +139,7 @@ def verifLogin(login = '', password = ''): if len(login.split('@')) > 1: login_club = login.split('@')[1] login = login.split('@')[0] - if not login.isalpha(): + if not login.replace("-","").isalpha(): raise Exception, "Bad password" adh = LDAP.search('uid=' + login)['adherent'][0] mdp_ok = adh.checkPassword(password)