From ef14fbceecc397f9c46cba5cde9bf22f69209e28 Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Sun, 13 Apr 2025 20:14:45 -0600 Subject: [PATCH] fix --- functions/account_functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/account_functions.php b/functions/account_functions.php index 970de5e..f69acf1 100644 --- a/functions/account_functions.php +++ b/functions/account_functions.php @@ -47,7 +47,8 @@ function login($username, $password, $stay_logged_in) } $_SESSION['user_id'] = $user['user_id']; - $_SESSION['username'] = $user['role_id']; + $_SESSION['username'] = $user['username']; + $_SESSION['role_id'] = $user['role_id']; if ($stay_logged_in) { $token = bin2hex(random_bytes(64));