1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- {% extends 'bulma.html.twig' %}
- {% block title %}Connexion{% endblock %}
- {% block content %}
- {% if app.user %}
- Vous êtes connecté en tant que {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">se déconnecter</a>.
- {% else %}
- <form method="post">
- {% if error %}
- <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}<br/>{{ error.message }}</div>
- {% endif %}
- <h1 class="h3 mb-3 font-weight-normal">Connexion</h1>
- <label for="username">eMail</label>
- <input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="email" required autofocus>
- <label for="password">Mot de passe</label>
- <input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>
- <input type="hidden" name="_csrf_token" data-controller="csrf-protection" value="{{ csrf_token('authenticate') }}">
- {#
- Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
- See https://symfony.com/doc/current/security/remember_me.html
- #}
- <div class="checkbox mb-3">
- <input type="checkbox" name="_remember_me" id="_remember_me">
- <label for="_remember_me">Se souvenir de moi</label>
- </div>
- <div>
- <a href="{{ path('app_forgot_password_request') }}">Mot de passe oublié</a> | <a href="{{ path('app_register') }}">Créer un compte</a>
- </div>
- {# #}
- <button class="btn btn-lg btn-primary" type="submit">
- Se connecter
- </button>
- </form>
- {% endif %}
-
- {% endblock %}
|