8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Update authentication.py

This commit is contained in:
chirac 2018-07-23 11:05:01 +02:00
parent 96318b7265
commit 137b3409c6

View file

@ -44,7 +44,6 @@ class ExpiringTokenAuthentication(TokenAuthentication):
)
utc_now = datetime.datetime.now(datetime.timezone.utc)
if token.created < utc_now - token_duration:
raise ValueError('boom')
raise exceptions.AuthenticationFailed(_('Token has expired'))
return (token.user, token)