aboutsummaryrefslogtreecommitdiff
path: root/views/profile
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-26 22:00:21 +0200
committerSyndamia <kamen@syndamia.com>2025-01-26 22:21:31 +0200
commitedf446fae669f3370609f5a955c3d6c863a93524 (patch)
treec46984167cc5b79c51b243602f7a4837d428fd82 /views/profile
parent73ad3e330be1a6849269fec5d4b7b42b0330cede (diff)
downloadnowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar.gz
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.zip
feat: Replace sessionStorage with (custom) cookieStorage
Diffstat (limited to 'views/profile')
-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');