1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Wrap IP in json

This commit is contained in:
David Bomba 2021-05-18 23:45:56 +10:00
parent 50ba43c2e4
commit 0a5b4fe7e2

View File

@ -67,8 +67,10 @@ class UpdateUserLastLogin implements ShouldQueue
$user->save();
}
$arr = json_encode(['ip' => $ip]);
SystemLogger::dispatch(
$ip,
$arr,
SystemLog::CATEGORY_SECURITY,
SystemLog::EVENT_USER,
SystemLog::TYPE_LOGIN_SUCCESS,