templates/security/login.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html class="h-100">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Connexion{% endblock %}</title>
  6.         {% block stylesheets %}
  7.             {{ encore_entry_link_tags('app') }}
  8.         {% endblock %}
  9.     </head>
  10.     <body class="login h-100 text-center" >
  11.         {% block body %}
  12.             <div class="container">
  13.                 <form class="form-signin" method="post">
  14.                     {% if error %}
  15.                         <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  16.                     {% endif %}
  17.                     {% if app.user %}
  18.                         <div class="mb-3">
  19.                             Vous êtes connecté en tant que {{ app.user.username }}, <a href="{{ path('app_logout') }}">Déconnexion</a>
  20.                         </div>
  21.                     {% endif %}
  22.                     <img src="{{ asset('build/img/logo.jpg') }}" class="mb-4" id="logo" alt="Upfield"/>
  23.                     <h1 class="h3 mb-3 font-weight-normal">Connectez-vous</h1>
  24.                     <input type="email" value="{{ last_username }}" name="email" placeholder="Email" id="inputEmail" class="form-control" required autofocus>
  25.                     <input type="password" name="password" id="inputPassword" placeholder="Mot de passe" class="form-control" required>
  26.                     <input type="hidden" name="_csrf_token"
  27.                         value="{{ csrf_token('authenticate') }}"
  28.                     >
  29.                     {#
  30.                         Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  31.                         See https://symfony.com/doc/current/security/remember_me.html
  32.                         <div class="checkbox mb-3">
  33.                             <label>
  34.                                 <input type="checkbox" name="_remember_me"> Remember me
  35.                             </label>
  36.                         </div>
  37.                     #}
  38.                     <button class="btn btn-primary btn-block btn-lg" type="submit">Valider</button>
  39.                     <a href="{{ path('forgot_password') }}" class="mt-5 mb-3 text-muted text-center">Mot de passe oublié ?</a>
  40.                     <p class="mt-5 mb-3 text-muted text-center">Sogec Digital © 2024</p>
  41.                 </form>
  42.             </div>
  43.         {% endblock %}
  44.         {% block javascripts %}
  45.             {{ encore_entry_script_tags('app') }}
  46.         {% endblock %}
  47.     </body>
  48. </html>