templates/security/login.html.twig line 1

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