{% form_theme form form.getOption('theme') %}
<form action="{% path 'doctrine_user_user_update' %}" {{ form|render_enctype }} method="POST" class="doctrine_user_user_edit">
    {{ form|render }}
    <div>
        <input type="submit" value="{% trans 'Update user' from 'DoctrineUserBundle' %}" />
    </div>
</form>

{% form_theme form form.getOption('theme') %}
<form action="{% path 'doctrine_user_user_update' with ['username': username] %}" {{ form|render_enctype }} method="POST" class="doctrine_user_user_edit">
    {{ form|render }}
    <div>
        <input type="submit" value="{% trans 'Update user' from 'DoctrineUserBundle' %}" />
    </div>
</form>

Add missing username parameter in the user edit twig view
Add missing username parameter in the user edit twig view
