I am using Symfony2 and Fosuserbundle on my website. But I have a problem when I want to reset my password.
- When I go to the /resetting/request page I first put my email.
- I receive an email with a link
- When I click at this link I can see a form with only the new password and a confirmation
- When I put the new password and the confirmation I receive this error message :
The lastname is required.
I didn't override the formtype or the controller, I just overrode the view like this on reset_content.html.twig
{% trans_default_domain 'FOSUserBundle' %}
<form action="{{ path('fos_user_resetting_reset', {'token': token}) }}" {{ form_enctype(form) }} method="POST" class="fos_user_resetting_reset">
{{ form_widget(form) }}
<div>
<input class="btn btn-success" type="submit" value="{{ 'resetting.reset.submit'|trans }}" />
</div>
</form>
What can I do to solve this problem ?
Thanks,