2026-06-05 21:21:55 +02:00
|
|
|
{% extends 'account/auth_layout.html.twig' %}
|
2026-06-05 20:41:50 +02:00
|
|
|
|
2026-06-05 21:21:55 +02:00
|
|
|
{% block title %}Log in — Rater{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block form %}
|
|
|
|
|
<h1 class="text-2xl font-bold mb-6">Welcome back</h1>
|
2026-06-05 20:41:50 +02:00
|
|
|
|
|
|
|
|
{% if error %}
|
2026-06-05 21:21:55 +02:00
|
|
|
<div role="alert" class="alert alert-error mb-4">
|
|
|
|
|
<span>{{ error.messageKey|trans(error.messageData, 'security') }}</span>
|
|
|
|
|
</div>
|
2026-06-05 20:41:50 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
2026-06-05 21:21:55 +02:00
|
|
|
<form method="post" class="flex flex-col gap-4">
|
|
|
|
|
<fieldset class="fieldset">
|
|
|
|
|
<legend class="fieldset-legend">Email</legend>
|
|
|
|
|
<input
|
|
|
|
|
type="email"
|
|
|
|
|
id="email"
|
|
|
|
|
name="_username"
|
|
|
|
|
value="{{ last_username }}"
|
|
|
|
|
class="input w-full"
|
|
|
|
|
placeholder="you@example.com"
|
|
|
|
|
autocomplete="email"
|
|
|
|
|
>
|
|
|
|
|
</fieldset>
|
2026-06-05 20:41:50 +02:00
|
|
|
|
2026-06-05 21:21:55 +02:00
|
|
|
<fieldset class="fieldset">
|
|
|
|
|
<legend class="fieldset-legend">Password</legend>
|
|
|
|
|
<input
|
|
|
|
|
type="password"
|
|
|
|
|
id="password"
|
|
|
|
|
name="_password"
|
|
|
|
|
class="input w-full"
|
|
|
|
|
placeholder="••••••••"
|
|
|
|
|
autocomplete="current-password"
|
|
|
|
|
>
|
|
|
|
|
</fieldset>
|
2026-06-05 20:41:50 +02:00
|
|
|
|
|
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
|
|
|
|
|
2026-06-05 21:21:55 +02:00
|
|
|
<button type="submit" class="btn btn-primary w-full mt-2">Log in</button>
|
2026-06-05 20:41:50 +02:00
|
|
|
</form>
|
|
|
|
|
|
2026-06-05 21:21:55 +02:00
|
|
|
<p class="text-sm text-center mt-6 text-base-content/60">
|
|
|
|
|
No account yet?
|
|
|
|
|
<a href="{{ path('app_register') }}" class="link link-primary">Register</a>
|
|
|
|
|
</p>
|
2026-06-05 20:41:50 +02:00
|
|
|
{% endblock %}
|