update logs
This commit is contained in:
@ -149,7 +149,7 @@ class LoginController extends Controller
|
||||
"action" => "Login",
|
||||
"desc" => "User login",
|
||||
];
|
||||
UserLogs::insert(Auth::user()->id, "User login");
|
||||
UserLogs::insert(Auth::user()->id, $log);
|
||||
|
||||
if ($req->wantsJson()) {
|
||||
return new JsonResponse([], 204);
|
||||
@ -185,7 +185,7 @@ class LoginController extends Controller
|
||||
"action" => "Logout",
|
||||
"desc" => "User logout",
|
||||
];
|
||||
UserLogs::insert(Auth::user()->id, "User logout");
|
||||
UserLogs::insert(Auth::user()->id, $log);
|
||||
|
||||
if ($user->role == Users::ROLE_ADMIN) {
|
||||
$this->guard()->logout();
|
||||
|
||||
Reference in New Issue
Block a user