From 125288ac6fe8468b79d8d0347a7ec4a375f3636e Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Tue, 17 Mar 2026 16:25:15 +0000 Subject: [PATCH] Fix auth failed message by removing unnecessary loop break (#7793) happens when you use multiple authentication methods --- core/authentication/resources/classes/authentication.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 74164902f..8b4d4ffe7 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -217,11 +217,6 @@ class authentication { //use the authentication plugins foreach ($_SESSION['authentication']['methods'] as $name) { - //skip the loop if already authorized - if (isset($result['authorized']) && $result['authorized']) { - break; - } - //already processed the plugin move to the next plugin if (!empty($_SESSION['authentication']['plugin'][$name]['authorized']) && $_SESSION['authentication']['plugin'][$name]['authorized']) { continue; @@ -564,7 +559,7 @@ class authentication { } //build the user array - $_SESSION['user']['extension'][$x]['domain_name']= $_SESSION["domain_name"]; + $_SESSION['user']['extension'][$x]['domain_name'] = $_SESSION["domain_name"]; $_SESSION['user']['extension'][$x]['user'] = $row['extension']; $_SESSION['user']['extension'][$x]['number_alias'] = $row['number_alias']; $_SESSION['user']['extension'][$x]['destination'] = $destination;