templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block PageHeader %}{% endblock %}
  3. {% block PageContent %}
  4.     <div style="min-height: 250px;">
  5.         <h1>{{ 'security.login.title'|trans({}) }}</h1>
  6.         <br />
  7.         {% if error %}
  8.             {#{ dump(error) }#}
  9.             {% if error.messageKey is defined %}
  10.                 <div class="error">{{ error.messageKey|trans(error.messageData) }}</div>
  11.             {% endif %}
  12.         {% endif %}
  13.         <form action="{{ path('login') }}" method="post" class="login">
  14.             <label for="username">{{ 'security.login.username'|trans({}) }}</label>
  15.             <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
  16.             <br /><br />
  17.             <label for="password">{{ 'security.login.password'|trans({}) }}</label>
  18.             <input type="password" id="password" name="_password" required="required" />
  19.             
  20.             <br />
  21.             <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  22.             <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}) }}" />
  23.         </form>
  24.     </div>
  25. {% endblock %}
  26. {% block PageFooter %}{% endblock %}