aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/session.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/controllers/session.php b/controllers/session.php
index 179afe6..e02cc79 100644
--- a/controllers/session.php
+++ b/controllers/session.php
@@ -25,7 +25,8 @@ function on_post() {
function on_delete() {
global $TOKEN;
try {
- Database\Cookie::delete($TOKEN);
+ $token = Database\Cookie::fromDBtoken($TOKEN);
+ $token->delete();
}
catch(Exception $e) {}
}