templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.     {% if error %}
  4.         <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  5.     {% endif %}
  6.     <form action="{{ path('login') }}" method="post" class="form-signin">
  7.         <label for="username" class="sr-only">{{ 'Username'|trans({}, 'security') }}</label>
  8.         <input id="username" class="form-control login-username" placeholder="{{ 'E-mail'|trans({}, 'security') }}" required="" autofocus="" type="text" name="_username" value="{{ last_username }}" />
  9.         <label for="password" class="sr-only">{{ 'Password'|trans({}, 'security') }}</label>
  10.         <input id="password" class="form-control login-password" placeholder="{{ 'Password'|trans({}, 'security') }}" required="" type="password" name="_password" />
  11.         <button class="btn btn-lg btn-primary btn-block" type="submit">{{ 'Sign in'|trans({}, 'security') }}</button>
  12.         <a class="btn btn-lg btn-primary btn-block" href="{{ path('register') }}">{{ 'Register'|trans({}, 'security') }}</a>
  13.         <div class="login-links">
  14.             <a href="{{ path('ask_recovery') }}">{{ 'Forgot your password?'|trans({}, 'security') }}</a>
  15.         </div>
  16.     </form>
  17. {% endblock %}