From 22f49f8ed2dff6d6c80437c8bae59fc4c7f21826 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; } }