Reputation: 1469
I am just trying to modify the look of the change password page. The only thing I couldn't figure out is what is the CurrentPassword field called..
{{ form_widget(form.plainPassword.first, {'attr': {'class': 'txtRegisterEmail','placeholder': 'Password'} }) }}
{{ form_widget(form.plainPassword.second,{'attr': {'class': 'txtRegisterEmail','placeholder': 'Verify password'} }) }}
Upvotes: 4
Views: 1907
Reputation: 31919
As you can see in ChangePasswordFormType, it's called current_password
:
{{ form_widget(form.current_password) }}
So in order, you'd have:
{{ form_widget(form.current_password) }}
{{ form_widget(form.plainPassword.first) }}
{{ form_widget(form.plainPassword.second) }}
Upvotes: 6