Login: Honor login destination setting (if any).

This commit is contained in:
fusionate 2023-06-23 18:00:37 +00:00
parent 90c2ef0029
commit 3389ab292d
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

View File

@ -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/");
}
?>