mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-22 14:59:33 +00:00
Update LogFailedLogin listener
This commit is contained in:
parent
bc52949ecd
commit
4a0b88a73b
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ class LogFailedLogin
|
||||||
$user = $event->user;
|
$user = $event->user;
|
||||||
$request = request();
|
$request = request();
|
||||||
|
|
||||||
|
if(!$user) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$log = new AccountLog();
|
$log = new AccountLog();
|
||||||
$log->user_id = $user->id;
|
$log->user_id = $user->id;
|
||||||
$log->item_id = $user->id;
|
$log->item_id = $user->id;
|
||||||
|
|
Loading…
Reference in a new issue