mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-17 22:18:28 +00:00
On domain change, respect default (or domain) login destination url value.
This commit is contained in:
@@ -79,6 +79,16 @@ else {
|
|||||||
$domain = new domains();
|
$domain = new domains();
|
||||||
$domain->db = $db;
|
$domain->db = $db;
|
||||||
$domain->set();
|
$domain->set();
|
||||||
|
|
||||||
|
// on domain change, redirect user
|
||||||
|
if ($_SESSION["login"]["destination"] != '') {
|
||||||
|
// to default, or domain specific, login destination
|
||||||
|
header("Location: ".PROJECT_PATH.$_SESSION["login"]["destination"]["url"]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
header("Location: ".PROJECT_PATH."/core/user_settings/user_dashboard.php");
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user