30 lines
1.0 KiB
Twig
30 lines
1.0 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Log in!{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="login-wrapper">
|
|
<div class="login">
|
|
<form method="post">
|
|
{% if error %}
|
|
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
|
|
{% endif %}
|
|
|
|
<h1 class="h3 mb-3 font-weight-normal">Se connecter</h1>
|
|
<label for="inputEmail">Email</label>
|
|
<input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" required autofocus>
|
|
<label for="inputPassword">Mot de passe</label>
|
|
<input type="password" name="password" id="inputPassword" class="form-control" required>
|
|
|
|
<input type="hidden" name="_csrf_token"
|
|
value="{{ csrf_token('authenticate') }}"
|
|
>
|
|
<button class="btn btn-lg btn-primary mt-3" type="submit">
|
|
Valider
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|