templates/security/login.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Log in!{% endblock %}
  3. {% block body %}
  4.     <div class="grid-container">
  5.         <div class="grid-x grid-padding-x grid-padding-y" style="margin-bottom: 200px;">
  6.             <div class="small-12 cell">
  7.                 <h1 style="text-align: center; margin-top: 75px;">Log in to Tiny Knight Games</h1>
  8.             </div>
  9.             <div class="small-12 medium-4 medium-offset-2 cell" style="margin-top: 25px;">
  10.                 <form method="post">
  11.                     {% if error %}
  12.                         <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  13.                     {% endif %}
  14.                     {% if app.user %}
  15.                         <div class="mb-3">
  16.                             You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
  17.                         </div>
  18.                     {% endif %}
  19.                     <label for="inputEmail"><strong>Email</strong></label>
  20.                     <input type="email" value="{{ last_username }}" placeholder="Email" name="email" id="inputEmail" class="form-control" autocomplete="email" required autofocus>
  21.                     <label for="inputPassword"><strong>Password</strong></label>
  22.                     <input type="password" name="password" id="inputPassword" placeholder="Password" class="form-control" autocomplete="current-password" required>
  23.                     <input type="hidden" name="_csrf_token"
  24.                            value="{{ csrf_token('authenticate') }}"
  25.                     >
  26.                     {#
  27.                     Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  28.                     See https://symfony.com/doc/current/security/remember_me.html
  29.                     <div class="checkbox mb-3">
  30.                         <label>
  31.                             <input type="checkbox" name="_remember_me"> Remember me
  32.                         </label>
  33.                     </div>
  34.                     #}
  35.                     <button class="button btn-lg btn-primary" type="submit" style="width: 100%; display: block; font-weight: bold; font-size: 1.15em;">
  36.                         Log in
  37.                     </button>
  38.                 </form>
  39.                 <p style="float: left;"><a href="{{ path('app_forgot_password_request') }}">Forgot Password</a></p>
  40.             </div>
  41.             <div class="small-12 medium-4 end cell" style="margin-top: 50px; padding-left: 50px; margin-left: 40px; border-left: 2px dashed #263e70;">
  42.                 <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>
  43.             </div>
  44.         </div>
  45.     </div>
  46. {% endblock %}