templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base_anonymous.html.twig' %}
  2. {% block title %}Log in!{% endblock %}
  3. {% block body %}
  4.     <div style="display: table;margin: 0 auto;border:1px solid black;border-radius:5px;padding:20px;">
  5.         <div class="col-md-12 text-center">
  6.             <form method="post" action="{{ path('app_login') }}">
  7.                 {% if error %}
  8.                     <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  9.                 {% endif %}
  10.                 <img src="{{ asset('build/images/silver.png') }}" width="200">
  11.                 <h1 class="h3 mb-3 font-weight-normal" style="margin-bottom: 30px">Connexion</h1>
  12.                 <div class="col-md-12">
  13.                     <div class="col-md-6">
  14.                         <label for="inputEmail" class="sr-only">Email</label>
  15.                         <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" placeholder="Email" required autofocus>
  16.                     </div>
  17.                     <div class="col-md-6">
  18.                         <label for="inputPassword" class="sr-only">Password</label>
  19.                         <input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
  20.                     </div>
  21.                 </div>
  22.                 <input type="hidden" name="_csrf_token"
  23.                     value="{{ csrf_token('authenticate') }}"
  24.                 >
  25.                 
  26.                 <input type="hidden" name="_target_path" value="{{ redirect }}"/>
  27.                 {#
  28.                     Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  29.                     See https://symfony.com/doc/current/security/remember_me.html
  30.                     <div class="checkbox mb-3">
  31.                         <label>
  32.                             <input type="checkbox" name="_remember_me"> Remember me
  33.                         </label>
  34.                     </div>
  35.                 #}
  36.                 <div class="row col-md-12 text-center" style="padding: 20px;margin-top: 20px">
  37.                     <button class="btn btn-lg btn-primary" type="submit">
  38.                         Connexion
  39.                     </button>
  40.                 </div>
  41.             </form>
  42.         </div>
  43.     </div>
  44. {% endblock %}