28 lines
904 B
Twig
28 lines
904 B
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Log in{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="auth-container">
|
|
<h1>Log in</h1>
|
|
|
|
{% if error %}
|
|
<div class="auth-error">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
|
|
{% endif %}
|
|
|
|
<form method="post">
|
|
<label for="inputEmail">Email</label>
|
|
<input type="email" value="{{ last_username }}" name="_username" id="inputEmail" autocomplete="email" required autofocus>
|
|
|
|
<label for="inputPassword">Password</label>
|
|
<input type="password" name="_password" id="inputPassword" autocomplete="current-password" required>
|
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
|
|
|
<button type="submit">Sign in</button>
|
|
</form>
|
|
|
|
<p class="auth-link">No account yet? <a href="{{ path('app_register') }}">Register</a></p>
|
|
</div>
|
|
{% endblock %}
|