templates/security/login.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block body %}
<div class="grid-container">
<div class="grid-x grid-padding-x grid-padding-y" style="margin-bottom: 200px;">
<div class="small-12 cell">
<h1 style="text-align: center; margin-top: 75px;">Log in to Tiny Knight Games</h1>
</div>
<div class="small-12 medium-4 medium-offset-2 cell" style="margin-top: 25px;">
<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 %}
<label for="inputEmail"><strong>Email</strong></label>
<input type="email" value="{{ last_username }}" placeholder="Email" name="email" id="inputEmail" class="form-control" autocomplete="email" required autofocus>
<label for="inputPassword"><strong>Password</strong></label>
<input type="password" name="password" id="inputPassword" placeholder="Password" class="form-control" autocomplete="current-password" required>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
{#
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
See https://symfony.com/doc/current/security/remember_me.html
<div class="checkbox mb-3">
<label>
<input type="checkbox" name="_remember_me"> Remember me
</label>
</div>
#}
<button class="button btn-lg btn-primary" type="submit" style="width: 100%; display: block; font-weight: bold; font-size: 1.15em;">
Log in
</button>
</form>
<p style="float: left;"><a href="{{ path('app_forgot_password_request') }}">Forgot Password</a></p>
</div>
<div class="small-12 medium-4 end cell" style="margin-top: 50px; padding-left: 50px; margin-left: 40px; border-left: 2px dashed #263e70;">
<a href="/connect/google" class="button" style="display: block; background: #4c8bf5; color: #fff; font-size: 1.1em; font-weight: bold;">Log in with Google</a>
</div>
</div>
</div>
{% endblock %}