mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +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;
|
||||
$request = request();
|
||||
|
||||
if(!$user) {
|
||||
return;
|
||||
}
|
||||
|
||||
$log = new AccountLog();
|
||||
$log->user_id = $user->id;
|
||||
$log->item_id = $user->id;
|
||||
|
|
Loading…
Reference in a new issue