Cannot login with user that already logged in
This commit is contained in:
parent
01172d6946
commit
658217fea7
@ -110,7 +110,8 @@ class Home
|
|||||||
$password = $args['password'];
|
$password = $args['password'];
|
||||||
|
|
||||||
$user = $this->access->showAll($table, [
|
$user = $this->access->showAll($table, [
|
||||||
['username', '=', $username]
|
['username', '=', $username],
|
||||||
|
['status', '!=', 1]
|
||||||
]);
|
]);
|
||||||
if ($user == false) {
|
if ($user == false) {
|
||||||
$info = "Invalid username/password";
|
$info = "Invalid username/password";
|
||||||
|
Loading…
Reference in New Issue
Block a user