From e4bed85f7d0b16f041944b55f3ce1bb4deee99ba Mon Sep 17 00:00:00 2001 From: tp_dhu Date: Sun, 9 Feb 2025 20:03:18 +0000 Subject: [PATCH] also selecting role in AuthController --- app/controllers/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/AuthController.php b/app/controllers/AuthController.php index f6b376f..40b36a3 100644 --- a/app/controllers/AuthController.php +++ b/app/controllers/AuthController.php @@ -21,7 +21,7 @@ class AuthController { $db = $f3->get('DB'); // query for user $result = $db->exec( - 'SELECT id, username, password FROM users WHERE username =? LIMIT 1', $username + 'SELECT id, username, password, role FROM users WHERE username =? LIMIT 1', $username ); // verifiy password