Permalink
Browse files

bug fix logout log

1 parent a4c3830 commit 140c76d34d595979005200f48e6163499fd45409 @fherryfherry fherryfherry committed Jan 10, 2017
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/controllers/AdminController.php
@@ -138,10 +138,11 @@ public function postForgot() {
}
public function getLogout() {
- Session::flush();
+
$me = CRUDBooster::me();
CRUDBooster::insertLog(trans("crudbooster.log_logout",['email'=>$me->email]));
+ Session::flush();
return redirect()->route('getLogin')->with('message',trans("crudbooster.message_after_logout"));
}

0 comments on commit 140c76d

Please sign in to comment.