From 2b44f9e3e8c6a737b1abad784a2e66d179e1cfff Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 12 Aug 2019 23:16:57 -0600 Subject: [PATCH] Update authentication.php --- core/authentication/resources/classes/authentication.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index c235d49f8c..6f4d31044b 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -90,8 +90,12 @@ class authentication { if (count($_SESSION['authentication']['methods']) > 1) { $result['results'][] = $array; } + if ($result["authorized"] == "true") { + //add the username to the session $_SESSION['username'] = $result["username"]; + + //end the loop break; } }