X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/c518611f1b9da9f7960440df38bbc6f2e09e5821..f757bbbcb48042b6cfaf44931c2313326afc0c09:/contrib/waldo/tokens.py?ds=sidebyside diff --git a/contrib/waldo/tokens.py b/contrib/waldo/tokens.py index aff91ff..fe32274 100644 --- a/contrib/waldo/tokens.py +++ b/contrib/waldo/tokens.py @@ -63,4 +63,4 @@ class RegistrationTokenGenerator(PasswordResetTokenGenerator): hash = sha_constructor(settings.SECRET_KEY + unicode(user.id) + unicode(user.is_active) + user.last_login.strftime('%Y-%m-%d %H:%M:%S') + unicode(timestamp)).hexdigest()[::2] return '%s-%s' % (ts_b36, hash) -default_token_generator = RegistrationTokenGenerator() \ No newline at end of file +registration_token_generator = RegistrationTokenGenerator() \ No newline at end of file