{% extends "FOSUserBundle::layout.html.twig" %}

{% trans_default_domain 'FOSUserBundle' %}

{% block fos_user_content %}
    <div class="connexion_field">
        <div class="fixed_content">
            <h1>Espace de connexion</h1>
        {% if error %}
            <div>{{ error|trans }}</div>
        {% endif %}

        
            <form action="{{ path("fos_user_security_check") }}" method="post">
                <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
                <div class="connexion_item">
                    <label for="username">{{ 'security.login.username'|trans }}</label>
                    <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
                </div>
                <div class="connexion_item">
                    <label for="password">{{ 'security.login.password'|trans }}</label>
                    <input type="password" id="password" name="_password" required="required" />
                </div>
                <div class="connexion_item">
                    <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
                    <label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
                </div>
                <br>
                <input class="submit"type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
            </form>
            <p>
                Pas encore de compte ?
                <a href="{{ path('fos_user_registration_register') }}">Inscrivez-vous !</a>
            </p>
        </div>
    </div>
{% endblock fos_user_content %}


{% extends "FOSUserBundle::layout.html.twig" %}

{% trans_default_domain 'FOSUserBundle' %}

{% block fos_user_content %}
    <div class="connexion_field">
        <div class="fixed_content">
            <h1>Espace de connexion</h1>
        {% if error %}
            <div>{{ error|trans }}</div>
        {% endif %}

        
            <form action="{{ path("fos_user_security_check") }}" method="post">
                <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
                <div class="connexion_item">
                    <label for="username">{{ 'security.login.username'|trans }}</label>
                    <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
                </div>
                <div class="connexion_item">
                    <label for="password">{{ 'security.login.password'|trans }}</label>
                    <input type="password" id="password" name="_password" required="required" />
                </div>
                <br>
                <input class="submit"type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
            </form>
            <p>
                Pas encore de compte ?
                <a href="{{ path('fos_user_registration_register') }}">Inscrivez-vous !</a>
            </p>
        </div>
    </div>
{% endblock fos_user_content %}


Remove "Remember me" checkbox from login template
Remove "Remember me" checkbox from login template