also selecting role in AuthController
This commit is contained in:
parent
7960cb6cdb
commit
e4bed85f7d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user