templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Log in!{% endblock %}
  3. {% block body %}
  4.     <form method="post" action="{{ path('login') }}">
  5.         {% if error %}
  6.             <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  7.         {% endif %}
  8.         
  9.         <h1 class="h3 mb-3 font-weight-normal">Lépej be a weboldal használatához</h1>
  10.         <label for="username">Felhasználónév</label>
  11.         <input type="text" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="username" required autofocus>
  12.         <label for="password">Jelszó</label>
  13.         <input type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>
  14.         <input type="hidden" name="_csrf_token"
  15.                value="{{ csrf_token('authenticate') }}"
  16.         >
  17.         <button class="btn btn-lg btn-primary" type="submit">
  18.             Belépés
  19.         </button>
  20.         <button type="btn btn-lg btn-primary" ><a href="{{ path('register') }}" style="color: white">Regisztráció</a></button>
  21.     </form>
  22. {% endblock %}