Commit d92f6045 authored by Antoine Bernard's avatar Antoine Bernard
parents bffff16b 2a73d723
......@@ -62,7 +62,7 @@ class MyResetTokenGenerator(PasswordResetTokenGenerator):
def _make_hash_value(self, user, timestamp):
# On surchage la méthode pour rechercher les informations
# dans la base LDAP
login_timestamp = user['derniereConnexion'][0] or ''
login_timestamp = (user['derniereConnexion'] or '')[0:1]
return str(user["uidNumber"][0]) + str(user['userPassword'][0])\
+ str(login_timestamp) + str(timestamp)
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