From a347c61c409b74d79fdca864f266e90f241c16f4 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Mon, 12 Jul 2021 11:33:36 +0200 Subject: [PATCH] TT#129162 fix passwork characters check * check that the password variable contains a value Change-Id: Iba1cf809d5cd81b3dbbeb4686765a667e339d93f (cherry picked from commit 63812835c03bf8ddec7986dc2cc6c83a90b8ec67) --- lib/NGCP/Panel/Utils/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Utils/Auth.pm b/lib/NGCP/Panel/Utils/Auth.pm index 7aeed8b313..2cb02c80a2 100644 --- a/lib/NGCP/Panel/Utils/Auth.pm +++ b/lib/NGCP/Panel/Utils/Auth.pm @@ -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; }