Bugfix for generate_reset_password_token

reset_password_token was being mixed with reset_password_sent_at
This commit is contained in:
Tristan Escalada
2012-06-15 16:01:49 -04:00
parent b3a9364a97
commit 2655d67f52
+1 -1
View File
@@ -47,7 +47,7 @@ def generate_reset_password_token(user):
try:
user['reset_password_token'] = token
user['reset_password_token'] = now
user['reset_password_sent_at'] = now
except TypeError:
user.reset_password_token = token
user.reset_password_sent_at = now