summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/index.php b/src/web/index.php
index ffd6b06..932fc84 100644
--- a/src/web/index.php
+++ b/src/web/index.php
@@ -53,11 +53,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$host = $_SERVER['HTTP_HOST'];
$env = getenv("HTTP_HOST");
- if ($host != $env) {
+ if ($_SERVER['REQUEST_URI'] !== '/login') {
// we are being forwarded authed
// redirect
http_response_code(301);
- header("Location: https://$env");
+ header("Location: https://$env/login");
} else {
page('login', array(
'title' => 'Login'