From edf446fae669f3370609f5a955c3d6c863a93524 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Jan 2025 22:00:21 +0200 Subject: feat: Replace sessionStorage with (custom) cookieStorage --- views/profile/authenticate.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'views/profile') 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'); -- cgit v1.2.3