diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-21 03:50:11 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-21 03:50:11 +0000 |
commit | f0b633334416ecb86de0356a06932fcf78efbfb7 (patch) | |
tree | 2adb3e18cd09d04cd63f3be65c4e12ef26aa49ff /modules/user/controllers | |
parent | a19a4729b55ac72d487def1bc5da9f427c084ba9 (diff) |
Add a logging facility, and instrument login/logout to use it.
Diffstat (limited to 'modules/user/controllers')
-rw-r--r-- | modules/user/controllers/logout.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/user/controllers/logout.php b/modules/user/controllers/logout.php index 19a8450b..60f9ee50 100644 --- a/modules/user/controllers/logout.php +++ b/modules/user/controllers/logout.php @@ -19,12 +19,7 @@ */ class Logout_Controller extends Controller { public function index() { - try { - Session::instance()->destroy(); - module::event("user_logout", $user); - } catch (Exception $e) { - Kohana::log("error", $e); - } + user::logout(); if ($this->input->get("continue")) { url::redirect($this->input->get("continue")); } |