2023-09-09 22:48:14 +02:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Login{% endblock %}
|
|
|
|
|
2023-10-09 00:03:03 +02:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
|
|
|
<style>
|
|
|
|
form { display: flex; flex-direction: column; gap: 0.5em; }
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-09-09 22:48:14 +02:00
|
|
|
{% block body %}
|
2023-10-09 00:03:03 +02:00
|
|
|
<h1>Login</h1>
|
|
|
|
{% if error %}
|
|
|
|
<p>{{ error.messageKey|trans(error.messageData, 'security') }}</p>
|
|
|
|
{% endif %}
|
2023-09-09 22:48:14 +02:00
|
|
|
|
2023-10-09 00:03:03 +02:00
|
|
|
<form action="{{ path('app_login') }}" method="post">
|
|
|
|
<label for="username">Email:</label>
|
|
|
|
<input type="text" id="username" name="_username" value="{{ last_username }}">
|
2023-09-09 22:48:14 +02:00
|
|
|
|
2023-10-09 00:03:03 +02:00
|
|
|
<label for="password">Password:</label>
|
|
|
|
<input type="password" id="password" name="_password">
|
2023-09-09 22:48:14 +02:00
|
|
|
|
2023-10-09 00:03:03 +02:00
|
|
|
{# If you want to control the URL the user is redirected to on success
|
|
|
|
<input type="hidden" name="_target_path" value="/account"> #}
|
2023-09-09 22:48:14 +02:00
|
|
|
|
2023-10-09 00:03:03 +02:00
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
2023-09-09 22:48:14 +02:00
|
|
|
|
2023-10-09 00:03:03 +02:00
|
|
|
<button type="submit">Login</button>
|
|
|
|
</form>
|
2023-09-09 22:48:14 +02:00
|
|
|
{% endblock %}
|