From a1fb76f4be2a54780f55ad274e15e27cb9b16e52 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 3 Oct 2016 21:35:34 -0600 Subject: [PATCH] Update authentication.php Update the session username if authorized is true. --- core/authentication/resources/classes/authentication.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index b95b69878a..ffdc0dc1e7 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -91,6 +91,7 @@ class authentication { $result['results'][] = $array; } if ($result["authorized"] == "true") { + $_SESSION['username'] = $result["username"]; break; } }