Cannot login with user that already logged in

This commit is contained in:
Gregorio Chiko Putra 2017-09-08 13:00:46 +07:00
parent 01172d6946
commit 658217fea7

View File

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