also selecting role in AuthController

This commit is contained in:
tp_dhu 2025-02-09 20:03:18 +00:00
parent 7960cb6cdb
commit e4bed85f7d

View File

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