From 0359796a33b5062504bcdc3616478cdbc8a9b09c Mon Sep 17 00:00:00 2001 From: Darryl Quinn Date: Mon, 6 Jul 2015 23:32:41 -0500 Subject: [PATCH] bugfix: detect tun passwords with only numbers --- files/www/cgi-bin/vpn | 1 + 1 file changed, 1 insertion(+) diff --git a/files/www/cgi-bin/vpn b/files/www/cgi-bin/vpn index a84f2f88..69184397 100755 --- a/files/www/cgi-bin/vpn +++ b/files/www/cgi-bin/vpn @@ -148,6 +148,7 @@ foreach $val (@list) # password MUST be alphanumeric (no special chars) push @cli_err, "The password cannot contain non-alphanumeric characters (#$client_num)" if ($passwd =~ m/[^a-zA-Z0-9@]/); + push @cli_err, "The password must contain at least one alphabetic character (#$client_num)" if ($passwd !~ /\D/); push @cli_err, "A client name is required" if($name eq ""); push @cli_err, "A client password is required" if($passwd eq "");