openvpn-authenticator: Generate TOTP instead of HOTP codes

This commit is contained in:
Timo Eissler
2022-06-07 12:12:20 +02:00
committed by Michael Tremer
parent 10b32d3895
commit 74ab6f9fc0

View File

@@ -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,
)