UserType 'SuperAdmin','Admin','Report','Agent','Sales'

This commit is contained in:
Ibnu Maksum
2024-02-12 17:02:43 +07:00
parent bf6ec9d4cd
commit 792b1367d3
18 changed files with 62 additions and 49 deletions

View File

@ -25,11 +25,11 @@ switch ($do) {
Admin::setCookie($d['id']);
$d->last_login = date('Y-m-d H:i:s');
$d->save();
_log($username . ' ' . $_L['Login_Successful'], 'Admin', $d['id']);
_log($username . ' ' . $_L['Login_Successful'], $d['user_type'], $d['id']);
r2(U . 'dashboard');
} else {
_msglog('e', $_L['Invalid_Username_or_Password']);
_log($username . ' ' . $_L['Failed_Login'], 'Admin');
_log($username . ' ' . $_L['Failed_Login'], $d['user_type']);
r2(U . 'admin');
}
} else {