Guest User

Untitled

a guest
Apr 1st, 2016
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. {# app/Resources/views/Security/login.html.twig #}
  2. {# ... you will probably extends your base template, like base.html.twig #}
  3. {% extends 'AppBundle:base.html.twig' %}
  4.  
  5. {% block title %} Logowanie {% endblock %}
  6.  
  7. {% block main %}
  8.  
  9. {% if error %}
  10. <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  11. {% endif %}
  12. <h1 align=center>Login</h1>
  13. <form action="{{ path('login') }}" method="post" class="pure-form pure-form-stacked">
  14. <label for="username">Username:</label>
  15. <input type="text" id="username" name="_username" value="{{ last_username }}" />
  16.  
  17. <label for="password">Password:</label>
  18. <input type="password" id="password" name="_password" />
  19.  
  20. {#
  21. If you want to control the URL the user
  22. is redirected to on success (more details below)
  23. <input type="hidden" name="_target_path" value="/account" />
  24. #}
  25.  
  26. <button type="submit">Login</button>
  27. </form>
  28.  
  29. {% endblock %}
Add Comment
Please, Sign In to add comment