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] Restrict guest Middleware to Fortify's guard #258

Merged
merged 2 commits into from
Apr 27, 2021
Merged

[1.x] Restrict guest Middleware to Fortify's guard #258

merged 2 commits into from
Apr 27, 2021

Conversation

chrisblackwell
Copy link
Contributor

This resolves a conflict with the RedirectIfAuthenticated middleware.

Currently, the guest middleware is added to fortify routes without a specific guard. In some applications, you will be a guest with one guard but authenticated the next.

This PR changes the guest registration on the Fortify guest middleware to use the gust middleware with the guard specified in the Fortify config file.

@driesvints driesvints changed the title Restrict guest Middleware to Fortify's guard [1.x] Restrict guest Middleware to Fortify's guard Apr 27, 2021
@taylorotwell taylorotwell merged commit 49d333c into laravel:1.x Apr 27, 2021
@chrisblackwell chrisblackwell deleted the specify-guest-guard branch April 27, 2021 16:32
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