From ea2d47c3c448926c7d1957d48ad8f68bd7a7d58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 8 Feb 2015 12:11:34 +0100 Subject: [PATCH] =?UTF-8?q?Alias=20mails=20:=20seuls=20ceux=20finissant=20?= =?UTF-8?q?par=20@crans.org=20sont=20autoris=C3=A9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/ldap_crans.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 7ef45d59..6ab72021 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1577,6 +1577,8 @@ class BaseProprietaire(BaseClasseCrans): if '@' not in new: new += '@crans.org' + else: + new = new.split('@')[0].lower() + '@crans.org' if index != -1: liste[index] = new