aboutsummaryrefslogtreecommitdiff
path: root/views/profile/authenticate.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/profile/authenticate.php')
-rw-r--r--views/profile/authenticate.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/views/profile/authenticate.php b/views/profile/authenticate.php
index afe1ca7..e4cf47e 100644
--- a/views/profile/authenticate.php
+++ b/views/profile/authenticate.php
@@ -9,8 +9,7 @@ if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
}
try {
- $headers = apache_request_headers();
- $user = Database\Cookie::fromDB($headers["Authorization"]);
+ $user = Database\Cookie::fromDB($TOKEN);
http_response_code(200);
header('Content-Type: text/plain');