[SOGo] On patche un peu partout pour pouvoir rendre le champ mail de ldap plus propre.
Ignore-this: aed0fb0c7f88d3feb1f0be35b11780bf darcs-hash:20121201132852-b6762-f77d73b568bc1ad0fef3c9341cb2a00a34a09a0c.gz
This commit is contained in:
parent
e6777ccb12
commit
ab6202f37c
5 changed files with 21 additions and 14 deletions
|
@ -130,7 +130,7 @@ class droits_ldap(CransLdap, droits):
|
|||
mail = adher.mail().lower()
|
||||
if mail in mail_traite : continue
|
||||
mail_traite.append(mail)
|
||||
if mail.find('@') == -1 : mail += '@crans.org'
|
||||
if adher._data.get('uid', '') != '' and not mail.endswith('@crans.org') : mail += '@crans.org'
|
||||
if mail not in deja_inscrits.keys() :
|
||||
# Visiblement pas inscrit
|
||||
to_add.append([ mail, adher.Nom() ])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue