a
This commit is contained in:
parent
cb9d1193c3
commit
9182d5c887
1 changed files with 2 additions and 2 deletions
|
@ -53,11 +53,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
|
|
||||||
$host = $_SERVER['HTTP_HOST'];
|
$host = $_SERVER['HTTP_HOST'];
|
||||||
$env = getenv("HTTP_HOST");
|
$env = getenv("HTTP_HOST");
|
||||||
if ($host != $env) {
|
if ($_SERVER['REQUEST_URI'] !== '/login') {
|
||||||
// we are being forwarded authed
|
// we are being forwarded authed
|
||||||
// redirect
|
// redirect
|
||||||
http_response_code(301);
|
http_response_code(301);
|
||||||
header("Location: https://$env");
|
header("Location: https://$env/login");
|
||||||
} else {
|
} else {
|
||||||
page('login', array(
|
page('login', array(
|
||||||
'title' => 'Login'
|
'title' => 'Login'
|
||||||
|
|
Loading…
Reference in a new issue