No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

43 líneas
1.4KB

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Log in!{% endblock %}
  3. {% block body %}
  4. <form method="post">
  5. {% if error %}
  6. <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  7. {% endif %}
  8. {% if app.user %}
  9. <div class="mb-3">
  10. You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
  11. </div>
  12. {% endif %}
  13. <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
  14. <label for="inputEmail">Email</label>
  15. <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" required autofocus>
  16. <label for="inputPassword">Password</label>
  17. <input type="password" name="password" id="inputPassword" class="form-control" required>
  18. <input type="hidden" name="_csrf_token"
  19. value="{{ csrf_token('authenticate') }}"
  20. >
  21. {#
  22. Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  23. See https://symfony.com/doc/current/security/remember_me.html
  24. <div class="checkbox mb-3">
  25. <label>
  26. <input type="checkbox" name="_remember_me"> Remember me
  27. </label>
  28. </div>
  29. #}
  30. <button class="btn btn-lg btn-primary" type="submit">
  31. Sign in
  32. </button>
  33. </form>
  34. {% endblock %}