Commit 6ad77dfd authored by Daniel STAN's avatar Daniel STAN

chgpass: formattage correct du mail de tentative

parent 0bd44619
......@@ -151,11 +151,11 @@ def change_password(ldap, login=None, verbose=False, no_cracklib=False, **args):
From = 'roots@crans.org'
To = 'roots@crans.org'
mail = """From: Root <%s>
To: %s
Subject: Tentative de changement de mot de passe !
To: %s
Subject: Tentative de changement de mot de passe !
Tentative de changement du mot de passe de %s par %s.
""" % (From, To , login.encode(encoding), current_user)
Tentative de changement du mot de passe de %s par %s.
""" % (From, To , login.encode(encoding), current_user)
# Envoi mail
conn = smtplib.SMTP('localhost')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment