Skip to content

Commit

Permalink
chg: [login OTP] increase valid window by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Feb 7, 2025
1 parent 93f3f20 commit f233aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lib/ail_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f233aae

Please sign in to comment.