summaryrefslogtreecommitdiff
path: root/api/token.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/token.php')
-rw-r--r--api/token.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/token.php b/api/token.php
index 81fe3d0..8c18c30 100644
--- a/api/token.php
+++ b/api/token.php
@@ -1,7 +1,7 @@
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn;
-if (!$isLoggedIn) header("Location: /login") and die();
+if (!$isLoggedIn) header("Location: /-/login") and die();
header("Content-Type: text/plain");
die($_COOKIE['PEH2_SESSION_TOKEN']); \ No newline at end of file