Website Summary Files Commits Branches @commit @diff @stats
path: root / controllers
diff options
context:
space:
mode:
1 files changed, 8 insertions, 0 deletions
-rw-r--r--controllers/login.php8
diff --git a/controllers/login.php b/controllers/login.php
index 7502b03..8b640ce 100644
--- a/controllers/login.php
+++ b/controllers/login.php
@@ -21,3 +21,11 @@ function on_post() {
$user_status = "User \"" . $_POST["username"] . "\" doesn't exist!";
}
}
+
+function on_delete() {
+ try {
+ $headers = apache_request_headers();
+ Database\Cookie::delete($headers["Authorization"]);
+ }
+ catch(Exception $e) {}
+}