<!DOCTYPE html>
<html class="h-100">
<head>
<meta charset="UTF-8">
<title>{% block title %}Connexion{% endblock %}</title>
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
<body class="login h-100 text-center" >
{% block body %}
<div class="container">
<form class="form-signin" method="post">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class="mb-3">
Vous êtes connecté en tant que {{ app.user.username }}, <a href="{{ path('app_logout') }}">Déconnexion</a>
</div>
{% endif %}
<img src="{{ asset('build/img/logo.jpg') }}" class="mb-4" id="logo" alt="Upfield"/>
<h1 class="h3 mb-3 font-weight-normal">Connectez-vous</h1>
<input type="email" value="{{ last_username }}" name="email" placeholder="Email" id="inputEmail" class="form-control" required autofocus>
<input type="password" name="password" id="inputPassword" placeholder="Mot de passe" class="form-control" required>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
{#
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
See https://symfony.com/doc/current/security/remember_me.html
<div class="checkbox mb-3">
<label>
<input type="checkbox" name="_remember_me"> Remember me
</label>
</div>
#}
<button class="btn btn-primary btn-block btn-lg" type="submit">Valider</button>
<a href="{{ path('forgot_password') }}" class="mt-5 mb-3 text-muted text-center">Mot de passe oublié ?</a>
<p class="mt-5 mb-3 text-muted text-center">Sogec Digital © 2024</p>
</form>
</div>
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</body>
</html>