aboutsummaryrefslogtreecommitdiff
path: root/controllers/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/login.php')
-rw-r--r--controllers/login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/controllers/login.php b/controllers/login.php
index 8b640ce..179afe6 100644
--- a/controllers/login.php
+++ b/controllers/login.php
@@ -23,9 +23,9 @@ function on_post() {
}
function on_delete() {
+ global $TOKEN;
try {
- $headers = apache_request_headers();
- Database\Cookie::delete($headers["Authorization"]);
+ Database\Cookie::delete($TOKEN);
}
catch(Exception $e) {}
}