myTD
myTD

Reputation: 1469

Custom Change Password Form

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

Answers (1)

Mick
Mick

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

Related Questions