From 354791c369cefa8460f27071f75e2fa484f4bb00 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 30 Jul 2024 17:41:23 +0200 Subject: [PATCH] MT#59449 sub auth fix possible username without undef domain * perform_subscriber_auth(): check if domain is undefined and use only $user, otherwise $user . @ . $domain. Change-Id: I3d342fb2c4768c2b7b3e0c08ea41e429b83e9683 (cherry picked from commit 4a9a632da1180078f59592d42b9c78eb9908b5de) --- lib/NGCP/Panel/Utils/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Auth.pm b/lib/NGCP/Panel/Utils/Auth.pm index dd45434e5d..f15f6ea1b1 100644 --- a/lib/NGCP/Panel/Utils/Auth.pm +++ b/lib/NGCP/Panel/Utils/Auth.pm @@ -140,7 +140,7 @@ sub perform_subscriber_auth { return $res; } - my $userdom = $user . '@' . $domain; + my $userdom = $domain ? $user . '@' . $domain : $user; return $res if user_is_banned($c, $userdom, 'subscriber'); my $authrs = $c->model('DB')->resultset('provisioning_voip_subscribers')->search({