templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base_login.html.twig' %}
  2. {% block content %}
  3.     <div class="card-body login-card-body">
  4.         <p class="login-box-msg">Faça o seu login</p>
  5.         <form action="{{ path('app_login') }}" method="post">
  6.             {% if error %}
  7.                 <div class="alert alert-danger">
  8.                     {{ error.messageKey|trans(error.messageData, 'security') }}
  9.                 </div>
  10.             {% else %}
  11.                 {% for message in app.flashes('danger') %}
  12.                     <div class="alert alert-danger">
  13.                         {{ message|raw }}
  14.                     </div>
  15.                 {% endfor %}
  16.             {% endif %}
  17.             {% for message in app.flashes('success') %}
  18.                 <div class="alert alert-success">
  19.                     {{ message|raw }}
  20.                 </div>
  21.             {% endfor %}
  22.             <div class="input-group mb-3">
  23.                 <input type="text" id="username" name="username"  class="form-control" placeholder="E-mail">
  24.                 <div class="input-group-append">
  25.                     <div class="input-group-text">
  26.                         <span class="fas fa-envelope"></span>
  27.                     </div>
  28.                 </div>
  29.             </div>
  30.             <div class="input-group mb-3">
  31.                 <input type="password" id="password" name="password" class="form-control" placeholder="Senha">
  32.                 <div class="input-group-append">
  33.                     <div class="input-group-text">
  34.                         <span class="fas fa-lock"></span>
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.             <div class="row">
  39.                 <div class="col-8">
  40.                     <div class="icheck-primary">
  41.                         <input type="checkbox" id="remember">
  42.                         <label for="remember">
  43.                             Lembrar-me
  44.                         </label>
  45.                     </div>
  46.                 </div>
  47.                 <!-- /.col -->
  48.                 <div class="col-4">
  49.                     <input type="hidden" name="_target_path" value="{{ app.request.get('redirect_to') }}"/>
  50.                     <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>
  51.                     <button type="submit" class="btn btn-primary btn-block">Entrar</button>
  52.                 </div>
  53.                 <!-- /.col -->
  54.             </div>
  55.         </form>
  56.         <p class="mb-1">
  57.             <a href="{{ path('forgot_password') }}">Esqueci a senha</a>
  58.         </p>
  59.     </div>
  60. {% endblock %}