Add a logging facility, and instrument login/logout to use it.

This commit is contained in:
Bharat Mediratta
2008-12-21 03:50:11 +00:00
parent a19a4729b5
commit f0b6333344
6 changed files with 107 additions and 16 deletions

View File

@@ -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"));
}