From a965c78735101419cec703c83592f7298579599c Mon Sep 17 00:00:00 2001 From: frytimo Date: Wed, 4 Sep 2024 20:09:16 -0300 Subject: [PATCH] fix empty session username (#7119) --- core/authentication/resources/classes/authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 43cc396ae0..e16b2850df 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -368,7 +368,7 @@ class authentication { $_SESSION['authorized'] = true; //add the username to the session - username session could be set so check_auth uses an authorized session variable instead - $_SESSION['username'] = $result["username"]; + $_SESSION['username'] = $_SESSION['user']["username"]; } //authorized true