{% extends 'base.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block main %}
<h1 class="text-center display-2">Login</h1>
<div class="row">
<div class="col-md-4 offset-4 reg-form">
<form method="post">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<label for="inputEmail">Email</label>
<input type="text" value="{{ last_username }}" name="email_or_username" id="email_or_username" class="form-control" autocomplete="email" required autofocus>
<label for="inputPassword">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
<button class="btn btn-lg btn-primary" style="margin:15px 0;" type="submit">
Sign in
</button>
</form>
</div>
</div>
{% endblock %}