Commit dd174499 authored by bos's avatar bos

Les logins peuvent contenir des "-"

darcs-hash:20070603220818-c992d-225629edd07adabc7df384c696b0de41b59120a2.gz
parent ef544c6a
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment