From 216951e0fe8f2f88c0a84ecd0e10ec6e9f46b092 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 877bb9d6fc..ade9042411 100644 --- a/lib/NGCP/Panel/Utils/Auth.pm +++ b/lib/NGCP/Panel/Utils/Auth.pm @@ -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; }