diff options
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/__init__.py | 2 | ||||
-rw-r--r-- | kvmd/apps/kvmd/auth.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/__init__.py b/kvmd/__init__.py index d8199fd8..67b94f37 100644 --- a/kvmd/__init__.py +++ b/kvmd/__init__.py @@ -20,4 +20,4 @@ # ========================================================================== # -__version__ = "4.42" +__version__ = "4.43" 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] |