diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-02 12:23:02 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-02 12:23:02 +0200 |
| commit | 0d5738a2bc9dd4f5edf582f7cea3614bcbb44842 (patch) | |
| tree | 1ddb7845d85ff5126e33c3e72cbcc18c2f31b511 /views/profile/authenticate.php | |
| parent | 14c84a83bcad285219539821647ee2d988eabaa8 (diff) | |
| download | nowayforward_human-0d5738a2bc9dd4f5edf582f7cea3614bcbb44842.tar nowayforward_human-0d5738a2bc9dd4f5edf582f7cea3614bcbb44842.tar.gz nowayforward_human-0d5738a2bc9dd4f5edf582f7cea3614bcbb44842.zip | |
feat!(views): Rename profile to user
Diffstat (limited to 'views/profile/authenticate.php')
| -rw-r--r-- | views/profile/authenticate.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/views/profile/authenticate.php b/views/profile/authenticate.php deleted file mode 100644 index e4cf47e..0000000 --- a/views/profile/authenticate.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php - -if ($_SERVER['REQUEST_METHOD'] !== 'POST') { - header('Allow: POST'); - http_response_code(405); - header('Content-Type: text/plain'); - echo $_SERVER['REQUEST_METHOD'] . " request not allowed!"; - exit; -} - -try { - $user = Database\Cookie::fromDB($TOKEN); - - http_response_code(200); - header('Content-Type: text/plain'); - echo $user->Username; -} -catch(Exception $e) { - http_response_code(401); - header('Content-Type: text/plain'); - echo 'Bad token!'; -} - -exit; |
