templates/security/login.html.twig line 11

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