redirect after login

This commit is contained in:
Ibnu Maksum
2024-02-27 10:37:41 +07:00
parent 1ec8049068
commit b938db9e5d
3 changed files with 15 additions and 2 deletions

View File

@ -5,6 +5,10 @@
* by https://t.me/ibnux * by https://t.me/ibnux
**/ **/
if(Admin::getID()){
r2(U.'dashboard');
}
if (isset($routes['1'])) { if (isset($routes['1'])) {
$do = $routes['1']; $do = $routes['1'];
} else { } else {

View File

@ -4,5 +4,10 @@
* by https://t.me/ibnux * by https://t.me/ibnux
**/ **/
if(Admin::getID()){
r2(APP_URL.'/index.php?_route=dashboard'); r2(U.'dashboard');
}if(User::getID()){
r2(U.'home');
}else{
r2(U.'login');
}

View File

@ -5,6 +5,10 @@
* by https://t.me/ibnux * by https://t.me/ibnux
**/ **/
if(User::getID()){
r2(U.'home');
}
if (isset($routes['1'])) { if (isset($routes['1'])) {
$do = $routes['1']; $do = $routes['1'];
} else { } else {