From 5b88541a155a73d6a08c5d62b4ac287cb3aea4f9 Mon Sep 17 00:00:00 2001 From: Hermann Schwarting Date: Tue, 23 Sep 2014 22:06:14 +0200 Subject: [PATCH] Correct reference to password prompt subroutine Some VPNs ask for a second token code. Correct the call to read_password() in these cases to read_input("password"). See 2065462 where the subroutine was renamed. The error message is: Undefined subroutine &main::read_password called at ./jvpn.pl line 194. --- jvpn.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jvpn.pl b/jvpn.pl index 947ebc4..7d46fd9 100755 --- a/jvpn.pl +++ b/jvpn.pl @@ -182,7 +182,7 @@ print $1; print "\n"; print "Enter challenge response: "; - $password=read_password(); + $password=read_input("password"); print "\n"; } # if password was specified in plaintext we should not use it @@ -191,7 +191,7 @@ print "To continue, wait for the token code to change and ". "then enter the new pin and code.\n"; print "Enter PIN+password: "; - $password=read_password(); + $password=read_input("password"); print "\n"; } elsif ($cfgpass =~ /^helper:(.+)/) {