chg: [login OTP] increase valid window by 1

This commit is contained in:
terrtia 2025-02-07 14:36:34 +01:00
parent 93f3f20b55
commit f233aae887
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -167,7 +167,7 @@ def _get_totp(secret):
return pyotp.TOTP(secret)
def _verify_totp(totp, code):
return totp.verify(code)
return totp.verify(code, valid_window=1)
def _get_hotp(secret):
return pyotp.HOTP(secret)