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

[1.x] Switch the TwoFactorLoginResponse for a contract bound in container #34

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

snapey
Copy link
Contributor

@snapey snapey commented Sep 14, 2020

By binding a contract for the TwoFactorLoginResponse, projects can substitute their own implementation in order to use some conditional routing in the login response (eg, admin user directed to admin dashboard). This was already possible for the regular login, but not for the 2fa login.

Contract, classes and bindings replicate the LoginResponse, but keeps the original TwoFactor response.

Answers #31 feature request

@driesvints driesvints changed the title Switch the TwoFactorLoginResponse for a contract bound in container [1.x] Switch the TwoFactorLoginResponse for a contract bound in container Sep 14, 2020
@taylorotwell taylorotwell merged commit aa2ee11 into laravel:1.x Sep 14, 2020
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.

None yet

2 participants