Skip to content

Conversation

@timacdonald
Copy link
Member

@timacdonald timacdonald commented May 8, 2024

Please see: laravel/fortify#536

laravel/ui specific considerations

This only fixes future installations.

We could throw an unauthenticated exception in the controller so that existing installs get this fix, but I don't love that solution as it wouldn't necessarily match what their apps Authenticate middleware does if they have made customisations.

Putting the auth middleware on the route in the routes file feels problematic as well as the app may not have an auth middleware. Everywhere a middleware is currently referenced is published as a stub so the user has full control.

This doesn't seems like a massive issue, so I feel this "simple" fix is reasonable.

@timacdonald timacdonald changed the title Ensure logout requires authentication [4.x] Ensure logout requires authentication May 8, 2024
@taylorotwell taylorotwell merged commit c75396f into laravel:4.x May 8, 2024
@timacdonald timacdonald deleted the logout branch May 8, 2024 23:38
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