diff options
Diffstat (limited to 'controllers')
| -rw-r--r-- | controllers/login.php | 8 |
1 files changed, 8 insertions, 0 deletions
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) {} +} |
