templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'security/base.html.twig' %}
  2. {% block security_title %}Connexion{% endblock %}
  3. {% block security_form %}
  4.     {% if error %}
  5.         <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  6.     {% endif %}
  7.     <form action="{{ path('security_login') }}" method="post">
  8.         {% if csrf_token %}
  9.             <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
  10.         {% endif %}
  11.         <div class="form-group">
  12.             <input placeholder="Login ou email" type="text" class="form-control" required name="_username">
  13.         </div>
  14.         <div class="form-group">
  15.             <input placeholder="Mot de passe" type="password" class="form-control" required name="_password">
  16.         </div>
  17.         <div class="row">
  18.             <div class="col-md-6">
  19.                 <a href="{{ path('app_forgot_password_request') }}">Mot de passe oubliĆ©</a>
  20.             </div>
  21.             <div class="col-md-6 text-right">
  22.                 <button type="submit" class="btn btn-primary">Connexion</button>
  23.             </div>
  24.         </div>
  25.     </form>
  26. {% endblock security_form %}