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

Add support for password confirmation middleware. #6

Merged
merged 3 commits into from
Sep 11, 2020
Merged

Add support for password confirmation middleware. #6

merged 3 commits into from
Sep 11, 2020

Conversation

jtolj
Copy link
Contributor

@jtolj jtolj commented Sep 4, 2020

This PR adds controller methods to support the 'password.confirm' middleware from Illuminate/Auth.

The idea here is that this could eventually be used to implement a solution for issues like:
laravel/jetstream#17
laravel/jetstream#20

Where certain high risk actions (deleting an API key, deleting the user account, disabling 2FA, etc) could require a password verification prior to accessing the route. This is the pattern that Github follows (a re-auth redirect), and I think it's the most flexible approach.

Thanks for considering!

@taylorotwell taylorotwell changed the base branch from master to 1.x September 11, 2020 13:34
@taylorotwell taylorotwell merged commit 290bea7 into laravel:1.x Sep 11, 2020
@taylorotwell
Copy link
Member

Well done. This saved me some time today.

@jtolj jtolj deleted the f/implement-require-password branch September 11, 2020 14:10
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.

3 participants