mirror of https://github.com/aredn/aredn.git
bugfix: detect tun passwords with only numbers
This commit is contained in:
parent
8eabf6ad00
commit
0359796a33
|
@ -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 "");
|
||||
|
||||
|
|
Loading…
Reference in New Issue