From f233aae8878140d64cebb5abc886d1d8c4eab1a0 Mon Sep 17 00:00:00 2001 From: terrtia Date: Fri, 7 Feb 2025 14:36:34 +0100 Subject: [PATCH] chg: [login OTP] increase valid window by 1 --- bin/lib/ail_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/ail_users.py b/bin/lib/ail_users.py index 0e95cd67..228923b5 100755 --- a/bin/lib/ail_users.py +++ b/bin/lib/ail_users.py @@ -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)