Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Login event firing before Register #59

Merged
merged 1 commit into from
Apr 8, 2021
Merged

Conversation

Quirinus
Copy link
Contributor

@Quirinus Quirinus commented Apr 8, 2021

This fixes the wrong order of events firing on user registration. It was caused by the Auth::login() happening before firing the Registered event.

Order before: Login event, then Register event.
Order now: Register event, then Login event.

This could have possibly caused confusion and problems for apps that rely on the events firing in the correct order, which is the same as what happens in reality: user is first registered, and only then can the user login.

@Quirinus Quirinus changed the title Fixes Login event firing before Register Fix Login event firing before Register Apr 8, 2021
@taylorotwell taylorotwell merged commit 9177b80 into laravel:1.x Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants