Commit 49095906 authored by ale's avatar ale
Browse files

be more generous with time drift

parent 908477e9
......@@ -63,8 +63,8 @@ class Auth(AuthBase):
crypt.crypt(password, pwcache[username]) == pwcache[username]):
if totp_key:
ok, drift = accept_totp(totp_key, otp or '', format='dec6',
period=30, forward_drift=1,
period=30, forward_drift=2,
return ok
return True
return False
Supports Markdown
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