Commit 137b3409 authored by chirac's avatar chirac
Browse files


parent 96318b72
......@@ -44,7 +44,6 @@ class ExpiringTokenAuthentication(TokenAuthentication):
utc_now =
if token.created < utc_now - token_duration:
raise ValueError('boom')
raise exceptions.AuthenticationFailed(_('Token has expired'))
return (token.user, token)
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