Login: Honor login destination setting (if any).
This commit is contained in:
parent
90c2ef0029
commit
3389ab292d
|
|
@ -30,6 +30,11 @@
|
|||
require_once "resources/check_auth.php";
|
||||
|
||||
//redirect
|
||||
header("Location: ".PROJECT_PATH."/core/dashboard/");
|
||||
if (isset($_SESSION['login']['destination']['text'])) {
|
||||
header("Location: ".$_SESSION['login']['destination']['text']);
|
||||
}
|
||||
else {
|
||||
header("Location: ".PROJECT_PATH."/core/dashboard/");
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue