templates/security/login.html.twig line 1
{% extends 'login.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block body %}
<form method="post" class="w-full max-w-md mx-auto">
{% if error %}
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
</div>
{% endif %}
<h1 class="text-xl font-semibold mb-3">Please sign in</h1>
<div class="mb-4">
<label for="inputUsername" class="block text-gray-700 font-semibold mb-2">Username</label>
<input type="text" value="{{ last_username }}" name="username" id="inputUsername" class="form-input py-2 px-3 block w-full border rounded" autocomplete="username" required autofocus>
</div>
<div class="mb-6">
<label for="inputPassword" class="block text-gray-700 font-semibold mb-2">Password</label>
<input type="password" name="password" id="inputPassword" class="form-input py-2 px-3 block w-full border rounded" autocomplete="current-password" required>
</div>
<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="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" type="submit">
Sign in
</button>
</form>
{% endblock %}