templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Log in!{% endblock %}
  3. {% block main %}
  4. <h1 class="text-center display-2">Login</h1>
  5. <div class="row">
  6.     <div class="col-md-4 offset-4 reg-form">
  7.         <form method="post">
  8.             {% if error %}
  9.                 <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  10.             {% endif %}
  11.             <label for="inputEmail">Email</label>
  12.             <input type="text" value="{{ last_username }}" name="email_or_username" id="email_or_username" 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.             <button class="btn btn-lg btn-primary" style="margin:15px 0;" type="submit">
  19.                 Sign in
  20.             </button>
  21.         </form>
  22.     </div>
  23. </div>
  24. {% endblock %}