From: Timo Eissler Date: Tue, 7 Jun 2022 10:12:20 +0000 (+0200) Subject: openvpn-authenticator: Generate TOTP instead of HOTP codes X-Git-Tag: v2.27-core170~61^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74ab6f9fc03dab8dae8d63c86e036f2b96162f25;p=ipfire-2.x.git openvpn-authenticator: Generate TOTP instead of HOTP codes --- 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, )