Custom password form change

I'm just trying to change the look of the password change page. The only thing I could not understand was what the CurrentPassword field is called ..

{{ form_widget(form.plainPassword.first, {'attr': {'class': 'txtRegisterEmail','placeholder': 'Password'} }) }} {{ form_widget(form.plainPassword.second,{'attr': {'class': 'txtRegisterEmail','placeholder': 'Verify password'} }) }} 
+4
source share
1 answer

As you can see in ChangePasswordFormType , it is called current_password :

 {{ form_widget(form.current_password) }} 

So you will have:

 {{ form_widget(form.current_password) }} {{ form_widget(form.plainPassword.first) }} {{ form_widget(form.plainPassword.second) }} 
+6
source

All Articles