mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
openvpn-authenticator: Generate TOTP instead of HOTP codes
This commit is contained in:
committed by
Michael Tremer
parent
10b32d3895
commit
74ab6f9fc0
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user