fix empty session username (#7119)

This commit is contained in:
frytimo 2024-09-04 20:09:16 -03:00 committed by GitHub
parent d234fb185a
commit a965c78735
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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