Commit 95f785be authored by Daniel STAN's avatar Daniel STAN

ajoute historique si chgt de mdp

parent d01265a9
......@@ -89,6 +89,7 @@ class Ticket(object):
value = gen_password()
with adh:
adh['userPassword'] = [crans_utils.hash_password(value).decode('ascii')]
adh.history_gen()
adh.save()
except EnvironmentError:
print("Impossible de changer le mot de passe de %s" % login)
......
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