2026-04-11 20:45:51 +02:00
|
|
|
{% extends 'Game/index.html.twig' %}
|
|
|
|
|
|
|
|
|
|
{% block title %} - Sign In{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block body %}
|
2026-04-12 08:10:36 +02:00
|
|
|
<div class="auth-page">
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
{% for message in app.flashes('success') %}
|
|
|
|
|
<div class="auth-flash auth-flash--success">
|
|
|
|
|
<i class="fa fa-check-circle"></i> {{ message }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
{% for message in app.flashes('error') %}
|
|
|
|
|
<div class="auth-flash auth-flash--error">
|
|
|
|
|
<i class="fa fa-exclamation-triangle"></i> {{ message }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<div class="auth-card">
|
|
|
|
|
<h2 class="auth-title">Sign In</h2>
|
|
|
|
|
<p class="auth-sub">Welcome back, commander</p>
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
{% if error %}
|
|
|
|
|
<div class="auth-error">
|
|
|
|
|
<i class="fa fa-exclamation-triangle"></i>
|
|
|
|
|
{{ error.messageKey|trans(error.messageData, 'security') }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<form class="auth-form" method="post" action="{{ path('MineSeekerBundle_login') }}">
|
|
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<div class="auth-field">
|
|
|
|
|
<label for="username" class="auth-label">Username</label>
|
|
|
|
|
<div class="auth-input-wrap">
|
|
|
|
|
<i class="fa fa-user auth-input-icon"></i>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="username"
|
|
|
|
|
name="_username"
|
|
|
|
|
class="auth-input"
|
|
|
|
|
value="{{ last_username }}"
|
|
|
|
|
autocomplete="username"
|
|
|
|
|
autofocus
|
|
|
|
|
required
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<div class="auth-field">
|
|
|
|
|
<label for="password" class="auth-label">Password</label>
|
|
|
|
|
<div class="auth-input-wrap">
|
|
|
|
|
<i class="fa fa-lock auth-input-icon"></i>
|
|
|
|
|
<input
|
|
|
|
|
type="password"
|
|
|
|
|
id="password"
|
|
|
|
|
name="_password"
|
|
|
|
|
class="auth-input"
|
|
|
|
|
autocomplete="current-password"
|
|
|
|
|
required
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<label class="auth-remember">
|
|
|
|
|
<input type="checkbox" name="_remember_me"/>
|
|
|
|
|
<span>Remember me</span>
|
|
|
|
|
</label>
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<button type="submit" class="auth-submit">
|
|
|
|
|
<i class="fa fa-sign-in"></i> Sign In
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<p class="auth-switch">
|
|
|
|
|
<a href="{{ path('MineSeekerBundle_forgot_password') }}">Forgot your password?</a>
|
|
|
|
|
</p>
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
<p class="auth-switch">
|
|
|
|
|
No account yet?
|
|
|
|
|
<a href="{{ path('MineSeekerBundle_register') }}">Create one</a>
|
|
|
|
|
</p>
|
2026-04-11 20:45:51 +02:00
|
|
|
</div>
|
2026-04-12 08:10:36 +02:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|