Website Summary Files Commits Branches @commit @diff @stats
path: root / views / profile / authenticate.php
diff options
context:
space:
mode:
Commitedf446fae669f3370609f5a955c3d6c863a93524 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-26 22:00:21 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-26 22:21:31 +0200
Filesc46984167cc5b79c51b243602f7a4837d428fd82 /views/profile/authenticate.php
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar.gz
nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.zip
Parent73ad3e330be1a6849269fec5d4b7b42b0330cede (diff)
feat: Replace sessionStorage with (custom) cookieStorage
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');