[ldap_crans] Augmentation taille TLD
Les TLD étaient limités à 3 caractères. Ils passent désormais à 5.
This commit is contained in:
parent
f4a322bc4d
commit
f8e0ced954
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue