templates/login/index.html.twig line 1
{% extends 'base.html.twig' %}
{% trans_default_domain "security" %}
{% block title %}{% trans %}Connexion{% endtrans %} | SpeakyPlanet{% endblock %}
{% block pageTitle %}{% trans %}Connexion{% endtrans %}{% endblock %}
{% block body %}
<style>
.form-signin {
width: 100%;
max-width: 330px;
padding: 15px;
margin: auto;
}
</style>
{% if error %}
<div class="alert alert-danger" role="alert">
<i class="bi bi-exclamation-triangle"></i>
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
<main class="form-signin text-center">
<form action="{{ path('app_login') }}" method="post">
<div class="form-floating">
<input type="text" class="form-control" id="username" name="_username" value="{{ last_username }}" required>
<label for="floatingInput">{% trans %}Pseudo :{% endtrans %}</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" id="password" name="_password" required>
<label for="floatingPassword">{% trans %}Mot de passe :{% endtrans %}</label>
</div>
<br/>
<div class="checkbox mb-3 d-none">
<label>
<input type="checkbox" name="_remember_me" checked> Remember me
</label>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<input type="hidden" name="_target_path" value="{{ path('user_homepage') }}"/>
<button class="w-100 btn btn-lg btn-primary" type="submit">{% trans %}Se connecter{% endtrans %}</button>
</form>
<p class="mt-5 mb-3 text-muted"><a href="{{ path('app_forgot_password_request') }}" >{% trans %}Pseudo ou mot de passe oubliƩ ?{% endtrans %}</a></p>
</main>
<br/>
{#
<p class="mt-5 mb-3 text-muted"><a href="{{ path('connect_facebook') }}" >Facebook</a></p>
#}
{#
<form action="{{ path('app_login') }}" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="_username" value="{{ last_username }}"/>
<label for="password">Password:</label>
<input type="password" id="password" name="_password"/>
<label>
<input type="checkbox" name="_remember_me" checked/>
Keep me logged in
</label>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<input type="hidden" name="_target_path" value="/account"/>
<button type="submit">login</button>
</form>
#}
{% endblock %}