diff --git a/system/controllers/login.php b/system/controllers/login.php index 15b5eaf0..d557f3a7 100644 --- a/system/controllers/login.php +++ b/system/controllers/login.php @@ -24,6 +24,9 @@ switch ($do) { $d = ORM::for_table('tbl_customers')->where('username', $username)->find_one(); if ($d) { $d_pass = $d['password']; + if($d['status'] != 'Banned'){ + _alert(Lang::T('This account status').' : '.Lang::T($c['status']),'danger', ""); + } if (Password::_uverify($password, $d_pass) == true) { $_SESSION['uid'] = $d['id']; User::setCookie($d['id']);