We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a26aa01 commit df80ea5Copy full SHA for df80ea5
bin/ovpn_otp_user
@@ -28,6 +28,7 @@ if [ "$2" == "interactive" ]; then
28
# Always use time base OTP otherwise storage for counters must be configured somewhere in volume
29
google-authenticator --time-based --force -l "${1}@${OVPN_CN}" -s /etc/openvpn/otp/${1}.google_authenticator
30
else
31
+ # Skip confirmation if not running in interctive mode. Essential for integration tests.
32
google-authenticator --time-based --disallow-reuse --force --rate-limit=3 --rate-time=30 --window-size=3 \
- -l "${1}@${OVPN_CN}" -s /etc/openvpn/otp/${1}.google_authenticator
33
-fi
+ -l "${1}@${OVPN_CN}" -s /etc/openvpn/otp/${1}.google_authenticator --no-confirm
34
+fi
0 commit comments