yoesoff

login.html.twig

Sep 29th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.25 KB | None | 0 0
  1. {% extends 'base.html.twig' %}
  2.  
  3. {% block body %}
  4.     {% if error %}
  5.         <div class="alert alert-danger">
  6.             {{ error.messageKey|trans(error.messageData, 'security') }}
  7.         </div>
  8.     {% endif %}
  9.  
  10.     <form action="{{ path('security_login') }}" method="post">
  11.         <div>
  12.             <div class="form-group">
  13.                 <label class="form-control-label required" for="username">Username</label>
  14.                 <input type="text" id="username" name="_username" required="required" class="form-control"
  15.                       value="{{ last_username }}">
  16.             </div>
  17.             <div class="form-group">
  18.                 <label class="form-control-label required" for="password">Password</label>
  19.                 <input type="password" id="password" name="_password" required="required" class="form-control">
  20.             </div>
  21.             <div class="form-group">
  22.                 <button type="submit" id="Login" name="Login" class="btn-secondary btn">Login</button>
  23.             </div>
  24.             <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  25.             <input type="hidden" name="_target_path" value="{{ app.request.get('redirect_to') }}">
  26.         </div>
  27.     </form>
  28. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment