templates/security/login.html.twig line 15

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Log in!
  3. {% endblock %}
  4. {% block body %}
  5.     <div class="row">
  6.         <div class="col-sm-4"></div>
  7.         <div class="col-sm-4">
  8.             <form method="post">
  9.                 {% if error %}
  10.                     <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  11.                 {% endif %}
  12.                 {% if app.user %}
  13.                     <div class="mb-3">
  14.                         You are logged in as
  15.                         {{ app.user.username }},
  16.                         <a href="{{ path('app_logout') }}">Logout</a>
  17.                     </div>
  18.                 {% endif %}
  19.                 <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
  20.                 <label for="inputEmail">Email</label>
  21.                 <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" autocomplete="email" required autofocus>
  22.                 <label for="inputPassword">Password</label>
  23.                 <input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>
  24.                 <input
  25.                 type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  26.                 {#
  27.                                     Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  28.                                     See https://symfony.com/doc/current/security/remember_me.html
  29.                             
  30.                                     <div class="checkbox mb-3">
  31.                                         <label>
  32.                                             <input type="checkbox" name="_remember_me"> Remember me
  33.                                         </label>
  34.                                     </div>
  35.                                 #}
  36.                 <button class="btn btn-lg btn-primary mt-5" type="submit">
  37.                     Sign in
  38.                 </button>
  39.             </form>
  40.         </div>
  41.     </div>
  42. {% endblock %}