update logs

This commit is contained in:
Pringgosutono
2025-10-20 15:41:18 +07:00
parent 81efe25ce2
commit 0b79bd665c

View File

@ -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();