When I change password on user profile page, changes are applies but password field always set with old password that I have used for login.
New password will works only if I don't try to change something else on profile page.
If I try, old password also save to db instead of new.
To prevent this, I tried to set:
- 'attr' => array('autocomplete' => 'off') for password field in my UserType
- Also I tried to set 'always_empty' => true
- Both of these options
- force transform() method to return empty string in my DataTransformer for password field
- Tried to turn off autocomplete for form in twig
All this variants not work. What can I do else?
Any help will be appreciated! Thanks!
Disable browser 'Save Password' functionality not solve my problem, because currently I want to know, how to avoid this problem in Symfony without using javascript.