diff options
Diffstat (limited to 'controllers/session.php')
| -rw-r--r-- | controllers/session.php | 3 |
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) {} } |
