2021-04-29 20:51:13 +01:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
2020-07-23 23:48:49 +01:00
|
|
|
|
|
|
|
{% block stylesheets %}
|
2020-07-28 17:08:08 +01:00
|
|
|
{{ parent() }}
|
2021-04-29 23:47:42 +01:00
|
|
|
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/security/security.css') }}">
|
2020-07-23 23:48:49 +01:00
|
|
|
{% endblock %}
|
2020-07-22 02:58:25 +01:00
|
|
|
|
|
|
|
{% block title %}Log in!{% endblock %}
|
|
|
|
|
2020-10-19 23:45:48 +01:00
|
|
|
{% block body %}
|
2021-04-30 02:51:03 +01:00
|
|
|
<div class='content'>
|
|
|
|
<form method="post">
|
|
|
|
{% if error %}
|
|
|
|
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if app.user %}
|
|
|
|
<div class="mb-3">
|
|
|
|
You are logged in as {{ app.user.username }}, <a
|
|
|
|
href="{{ path('app_logout') }}">Logout</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="register-info">
|
|
|
|
<label for="inputNickname">Nickname</label>
|
|
|
|
<input type="text" value="{{ last_username }}" name="nickname" id="inputNickname"
|
|
|
|
class="form-control" required autofocus>
|
|
|
|
<label for="inputPassword">Password</label>
|
|
|
|
<input type="password" name="password" id="inputPassword" class="form-control" required>
|
2020-10-19 23:22:31 +01:00
|
|
|
</div>
|
2021-04-30 02:51:03 +01:00
|
|
|
|
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
|
|
|
|
|
|
|
<div class="checkbox mb-3">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="_remember_me"> Remember me
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="btn btn-lg btn-primary" type="submit">
|
|
|
|
Sign in
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-10-19 23:22:31 +01:00
|
|
|
{% endblock body %}
|
2020-10-19 23:45:48 +01:00
|
|
|
|
|
|
|
{% block javascripts %}{% endblock %}
|