This commit is contained in:
Ibnu Maksum
2022-09-18 00:00:40 +07:00
parent 742e0df1f2
commit e6f8826490
25 changed files with 121 additions and 105 deletions

View File

@ -15,6 +15,7 @@ switch ($do) {
case 'post':
$username = _post('username');
$password = _post('password');
run_hook('customer_login'); #HOOK
if ($username != '' and $password != '') {
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
if ($d) {
@ -41,11 +42,8 @@ switch ($do) {
break;
case 'login-display':
$ui->display('login.tpl');
break;
default:
run_hook('customer_view_login'); #HOOK
$ui->display('login.tpl');
break;
}