TT#129162 fix passwork characters check

* check that the password variable contains a value

Change-Id: Iba1cf809d5cd81b3dbbeb4686765a667e339d93f
(cherry picked from commit 63812835c0)
mr8.5.6
Kirill Solomko 5 years ago
parent 98bd83fcfa
commit 216951e0fe

@ -44,7 +44,7 @@ sub perform_auth {
my ($c, $user, $pass, $realm, $bcrypt_realm) = @_;
my $res;
if ($pass =~ /[^[:ascii:]]/) {
if ($pass && $pass =~ /[^[:ascii:]]/) {
return $res;
}
@ -108,7 +108,7 @@ sub perform_subscriber_auth {
my ($c, $user, $domain, $pass) = @_;
my $res;
if ($pass =~ /[^[:ascii:]]/) {
if ($pass && $pass =~ /[^[:ascii:]]/) {
return $res;
}

Loading…
Cancel
Save