From 74ab6f9fc03dab8dae8d63c86e036f2b96162f25 Mon Sep 17 00:00:00 2001 From: Timo Eissler Date: Tue, 7 Jun 2022 12:12:20 +0200 Subject: [PATCH] openvpn-authenticator: Generate TOTP instead of HOTP codes --- config/ovpn/openvpn-authenticator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ovpn/openvpn-authenticator b/config/ovpn/openvpn-authenticator index 2c92f07f88..f50aab0937 100644 --- a/config/ovpn/openvpn-authenticator +++ b/config/ovpn/openvpn-authenticator @@ -298,7 +298,7 @@ class OpenVPNAuthenticator(object): def _check_totp_token(self, token, secret): p = subprocess.run( - ["oathtool", "-w", "3", "%s" % secret], + ["oathtool", "--totp", "-w", "3", "%s" % secret], capture_output=True, ) -- 2.39.5