Fix Logic Banned user

This commit is contained in:
Ibnu Maksum
2024-05-17 19:05:16 +07:00
parent b5a9190ae7
commit 51c4909308
5 changed files with 10 additions and 8 deletions

View File

@ -24,7 +24,7 @@ switch ($do) {
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
if ($d) {
$d_pass = $d['password'];
if ($d['status'] != 'Banned') {
if ($d['status'] == 'Banned') {
_alert(Lang::T('This account status') . ' : ' . Lang::T($d['status']), 'danger', "");
}
if (Password::_uverify($password, $d_pass) == true) {