Advertisement
Guest User

Untitled

a guest
Apr 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. {# app/Resources/views/Bike/Login.html.twig #}
  2. {# ... you will probably extend your base template, like base.html.twig #}
  3.  
  4. {% if error %}
  5. <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  6. {% endif %}
  7.  
  8. <form action="{{ path('login') }}" method="post">
  9. <label for="username">Username:</label>
  10. <input type="text" id="username" name="_username" value="{{ last_username }}" />
  11.  
  12. <label for="password">Password:</label>
  13. <input type="password" id="password" name="_password" />
  14.  
  15. {#
  16. If you want to control the URL the user
  17. is redirected to on success (more details below)
  18. <input type="hidden" name="_target_path" value="/account" />
  19. #}
  20.  
  21. <button type="submit">login</button>
  22. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement