Skip to content

Commit

Permalink
fix: make SendLoginLink work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ion Babin committed Apr 28, 2024
1 parent 59b4b19 commit 666865d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Listeners/SendLoginLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function __construct(private readonly User $user)
*/
public function handle(RequestedLogin $event): void
{
$event->token->notify(new UserRequestedLogin($this->user->whereEmail($event->token->email)));
$user = $this->user->whereEmail($event->token->email);
$user->notify(new UserRequestedLogin($user));
}
}

0 comments on commit 666865d

Please sign in to comment.