Fix redirect and check user in database

This commit is contained in:
Ibnu Maksum
2023-06-15 17:06:22 +07:00
parent a9d10d330f
commit 12e06a51e4
4 changed files with 78 additions and 76 deletions

View File

@ -10,6 +10,10 @@ class User
{
$id = $_SESSION['uid'];
$d = ORM::for_table('tbl_customers')->find_one($id);
if(empty($d['username'])){
r2(U . 'logout', 'd', '');
}
return $d;
}