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] Fix for empty password during confirmation #87

Conversation

johanvanhelden
Copy link
Contributor

Allow an empty password to be given and let it behave as an invalid password.

Before this fix, if the user leaves the field empty, a server error would occur. Now, a nice validation error will show.


Fixes #86

@johanvanhelden johanvanhelden force-pushed the fix-for-empty-password-during-confirmation branch from 26f26a7 to dd63bf5 Compare September 23, 2020 18:34
@taylorotwell
Copy link
Member

Does the other method in this class that type hints string password need that same change?

@johanvanhelden johanvanhelden force-pushed the fix-for-empty-password-during-confirmation branch from a202ef3 to fef7dea Compare September 23, 2020 18:38
@johanvanhelden
Copy link
Contributor Author

@taylorotwell Yes, it does! I've added a fix and tests.

@taylorotwell taylorotwell merged commit 3000b82 into laravel:1.x Sep 23, 2020
@johanvanhelden johanvanhelden deleted the fix-for-empty-password-during-confirmation branch September 23, 2020 18:40
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.

[Password Confirmation] Submitting an empty password field results in a server error
2 participants