diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 3d521fc5..6d74a500 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -291,7 +291,7 @@ def validate_mail(mail, crans_allowed=False): # 2 à 4 caractères après le . final # @ pas en premier ni juste avant le dernier . if mail.count('@') != 1 \ - or not ( l-b >= 2 and l-b <= 4) \ + or not ( l-b >= 2 and l-b <= 6) \ or a < 1 or b-a < 2: raise ValueError(u"Adresse mail incorrecte.")