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

Validates empty current password for ChangePasswordFormType #2582

Merged
merged 4 commits into from Jul 6, 2017
Merged

Validates empty current password for ChangePasswordFormType #2582

merged 4 commits into from Jul 6, 2017

Conversation

symfonyaml
Copy link

Relates to:
symfony/symfony#23341
symfony/security-core@3bc0bcf

I can change user password without typing my current password.

Relates to:
symfony/symfony#23341
symfony/security-core@3bc0bcf

I can change user password without typing my current password.
Fixed use order
Using the array() language construct
@symfonyaml symfonyaml changed the title Validates empty current password Validates empty current password for ChangePasswordFormType Jul 5, 2017
@craue
Copy link

craue commented Jul 5, 2017

refs #2580

@craue
Copy link

craue commented Jul 5, 2017

This should be done against the 1.3.x branch as well. But when used with e.g. Symfony 2.7.29, two validation errors would be added with this patch (one per constraint). The same applies to #2583.

@XWB XWB merged commit 7084d48 into FriendsOfSymfony:master Jul 6, 2017
@XWB
Copy link
Member

XWB commented Jul 6, 2017

Thanks.

@craue
Copy link

craue commented Jul 6, 2017

Will 1.3 get a fix as well?

@XWB
Copy link
Member

XWB commented Jul 6, 2017

Perhaps someone is willing to send a PR for the 1.3 branch? I do not have 1.3 installed locally.

@craue
Copy link

craue commented Jul 6, 2017

Done in #2584.

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

4 participants