From 658217fea715e3af6940f27b5f590eaf7a3b0981 Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Fri, 8 Sep 2017 13:00:46 +0700 Subject: [PATCH] Cannot login with user that already logged in --- App/Controllers/Home.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App/Controllers/Home.php b/App/Controllers/Home.php index ad37262..be3f3d6 100644 --- a/App/Controllers/Home.php +++ b/App/Controllers/Home.php @@ -110,7 +110,8 @@ class Home $password = $args['password']; $user = $this->access->showAll($table, [ - ['username', '=', $username] + ['username', '=', $username], + ['status', '!=', 1] ]); if ($user == false) { $info = "Invalid username/password";