diff options
author | Marian Sigler <m@qjym.de> | 2012-09-26 03:47:57 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-26 03:47:57 +0200 |
commit | bf5d684c05a26787de0de80b0894b9d2d031c6ad (patch) | |
tree | 384a98a46061d04cc5064059f89215886b208dbc /utils.py | |
parent | 1d149b55d57632c41bb3d0d60805f3552cde3a22 (diff) | |
download | web-bf5d684c05a26787de0de80b0894b9d2d031c6ad.tar.gz web-bf5d684c05a26787de0de80b0894b9d2d031c6ad.tar.bz2 web-bf5d684c05a26787de0de80b0894b9d2d031c6ad.zip |
Implement password recovery functionality.
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -133,7 +133,6 @@ def verify_confirmation(realm, token, timeout=None): if mac != hmac.new(key, token[20:], sha1).digest(): raise ConfirmationInvalid('MAC does not match') - print '%d+%d=%d <> %d' % (tokentime, timeout, tokentime+timeout, time()) if timeout is not None and time() > tokentime + timeout: raise ConfirmationTimeout('Token is too old') |