mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-27 23:43:17 +00:00
Merge pull request #610 from pixelfed/frontend-ui-refactor
Update LogFailedLogin listener
This commit is contained in:
commit
b3c4c7dab5
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