{% trans_default_domain 'FOSUserBundle' %} {{ form_start(form, { 'action': path('my_account'), 'attr': { 'class': 'fos_user_change_password' } }) }}
{{ form_widget( form.current_password, { 'attr': {'class': 'form-control'} }) }} {{ form_errors(form.current_password) }}
{{ form_widget( form.plainPassword['first'], { 'attr': {'class': 'form-control'} }) }} {{ form_errors( form.plainPassword.first) }}
{{ form_widget( form.plainPassword['second'], { 'attr': {'class': 'form-control'} }) }} {{ form_errors(form.plainPassword.second) }}
{{ form_rest(form) }} {{ form_end(form) }}
{% if app.request.hasPreviousSession %} {% for type, messages in app.session.flashbag.all() %} {% for message in messages %}
{{ message }}
{% endfor %} {% endfor %} {% endif %}