bugfix: detect tun passwords with only numbers

This commit is contained in:
Darryl Quinn 2015-07-06 23:32:41 -05:00
parent 8eabf6ad00
commit 0359796a33
1 changed files with 1 additions and 0 deletions

View File

@ -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 "");