login.html.twig 1014 B

12345678910111213141516171819202122
  1. {% extends "FOSUserBundle::layout.html.twig" %}
  2. {% block fos_user_content %}
  3. {% if error %}
  4. <div>{{ error|trans({}, 'FOSUserBundle') }}</div>
  5. {% endif %}
  6. <form action="{{ path("fos_user_security_check") }}" method="post">
  7. <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
  8. <label for="username">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
  9. <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
  10. <label for="password">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>
  11. <input type="password" id="password" name="_password" required="required" />
  12. <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
  13. <label for="remember_me">{{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}</label>
  14. <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
  15. </form>
  16. {% endblock fos_user_content %}