Only redirect when not using the key.
This commit is contained in:
@@ -296,6 +296,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if logged in, redirect to login destination
|
//if logged in, redirect to login destination
|
||||||
|
if (!isset($_REQUEST["key"])) {
|
||||||
if (isset($_SESSION['login']['destination']['url'])) {
|
if (isset($_SESSION['login']['destination']['url'])) {
|
||||||
header("Location: ".$_SESSION['login']['destination']['url']);
|
header("Location: ".$_SESSION['login']['destination']['url']);
|
||||||
} elseif (file_exists($_SERVER["PROJECT_ROOT"]."/core/user_settings/user_dashboard.php")) {
|
} elseif (file_exists($_SERVER["PROJECT_ROOT"]."/core/user_settings/user_dashboard.php")) {
|
||||||
@@ -307,6 +308,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//set the time zone
|
//set the time zone
|
||||||
if (!isset($_SESSION["time_zone"]["user"])) { $_SESSION["time_zone"]["user"] = null; }
|
if (!isset($_SESSION["time_zone"]["user"])) { $_SESSION["time_zone"]["user"] = null; }
|
||||||
if (strlen($_SESSION["time_zone"]["user"]) == 0) {
|
if (strlen($_SESSION["time_zone"]["user"]) == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user