Skip to content

Commit

Permalink
Make sure to populate the current login immediately after remembered …
Browse files Browse the repository at this point in the history
…login
  • Loading branch information
alajusticia committed Nov 16, 2024
1 parent 9f380a6 commit 7116389
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Listeners/SessionEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public function handleSuccessfulLogin(\Illuminate\Auth\Events\Login $event): voi
{
if (! Auth::viaRemember() && Logins::tracked($event->user)) {
Logins::trackLoginFromSession(session()->getId(), $event->guard, $event->user, $event->remember);
} else {
Logins::checkSessionId($event->user);
}
}

Expand Down

0 comments on commit 7116389

Please sign in to comment.