[ldap_crans] typo
darcs-hash:20100830141122-ffbb2-4899978aa770f530e1f36ca6fa5afd21cbd09dd7.gz
This commit is contained in:
parent
a0edb2cc18
commit
337905013d
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ def validate_mail(mail, crans_allowed=False):
|
|||
raise ValueError(u"Caractère interdit dans l'adresse mail (%s)." % l)
|
||||
|
||||
# Pour les vicieux
|
||||
if crans_allowed and mail.endswith(('crans.org','crans.ens-cachan.fr')):
|
||||
if not crans_allowed and mail.endswith(('crans.org','crans.ens-cachan.fr')):
|
||||
raise ValueError(u"Adresse mail @crans interdite ici !")
|
||||
|
||||
# On enlève les blacklistes mail_invalide
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue