TT#129162 fix passwork characters check

* check that the password variable contains a value

Change-Id: Iba1cf809d5cd81b3dbbeb4686765a667e339d93f
(cherry picked from commit 63812835c0)
mr8.5.2
Kirill Solomko 4 years ago committed by Rene Krenn
parent c9f70472bf
commit a347c61c40

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

Loading…
Cancel
Save