diff options
author | Maxim Devaev <[email protected]> | 2025-01-16 14:57:05 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2025-01-16 14:57:05 +0200 |
commit | 3f3a834c0c0ade9e1a5f3c4a26829108c9214202 (patch) | |
tree | 05555bd213e0de3ce442559864f4d8bb6293e41d | |
parent | 8631ee85550a905f7226b1cb28071e4ca4884cfb (diff) |
pikvm/pikvm#1459: Extended TOTP window with a single step (+30sec)
-rw-r--r-- | kvmd/apps/kvmd/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/kvmd/auth.py b/kvmd/apps/kvmd/auth.py index 008e8a4f..bf979836 100644 --- a/kvmd/apps/kvmd/auth.py +++ b/kvmd/apps/kvmd/auth.py @@ -95,7 +95,7 @@ class AuthManager: secret = file.read().strip() if secret: code = passwd[-6:] - if not pyotp.TOTP(secret).verify(code): + if not pyotp.TOTP(secret).verify(code, valid_window=1): get_logger().error("Got access denied for user %r by TOTP", user) return False passwd = passwd[:-6] |