Les logins peuvent contenir des "-"
darcs-hash:20070603220818-c992d-225629edd07adabc7df384c696b0de41b59120a2.gz
This commit is contained in:
parent
ef544c6a43
commit
dd1744999a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue