Website Summary Files Commits Branches @commit @diff @stats
path: root / views / profile / authenticate.php
diff options
context:
space:
mode:
1 files changed, 1 insertions, 2 deletions
-rw-r--r--views/profile/authenticate.php3
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');