mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-15 03:02:39 -04:00
Add a logging facility, and instrument login/logout to use it.
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user