]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
openvpn-authenticator: Generate TOTP instead of HOTP codes
authorTimo Eissler <timo.eissler@ipfire.org>
Tue, 7 Jun 2022 10:12:20 +0000 (12:12 +0200)
committerTimo Eissler <timo.eissler@ipfire.org>
Tue, 7 Jun 2022 10:12:20 +0000 (12:12 +0200)
config/ovpn/openvpn-authenticator

index 2c92f07f88e0bfffa8d972ad5e53608e9cbcbf29..f50aab0937f41e2b647f87ef00dfcd6c2e3306f8 100644 (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,
                )