templates/bundles/FOSUserBundle/Security/login_content.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'FOSUserBundle' %}
  2. <form class="login" action="{{ path("fos_user_security_check") }}" method="post">
  3.     {% if error %}
  4.         <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  5.     {% endif %}
  6.     {% if csrf_token %}
  7.         <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
  8.     {% endif %}
  9. <div class="form-group">
  10.     <label for="username">{{ 'security.login.username'|trans }}</label>
  11.     <input class="form-control" type="text" id="username" name="_username" value="{{ last_username }}" required="required" autocomplete="username" />
  12. </div>
  13. <div class="form-group">
  14.     <label for="password">{{ 'security.login.password'|trans }}</label>
  15.     <input class="form-control" type="password" id="password" name="_password" required="required" autocomplete="current-password" />
  16. </div>
  17. <div class="form-group">
  18.     <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
  19.     <label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
  20. </div>
  21. <div class="form-group">
  22.                 <a href="{{ path('fos_user_resetting_request') }}">Forgot password ?</a>
  23. </div>
  24.     <input class="btn " type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
  25. </form>