Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {# app/Resources/views/Security/login.html.twig #}
- {# ... you will probably extends your base template, like base.html.twig #}
- {% extends 'AppBundle:base.html.twig' %}
- {% block title %} Logowanie {% endblock %}
- {% block main %}
- {% if error %}
- <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
- {% endif %}
- <h1 align=center>Login</h1>
- <form action="{{ path('login') }}" method="post" class="pure-form pure-form-stacked">
- <label for="username">Username:</label>
- <input type="text" id="username" name="_username" value="{{ last_username }}" />
- <label for="password">Password:</label>
- <input type="password" id="password" name="_password" />
- {#
- If you want to control the URL the user
- is redirected to on success (more details below)
- <input type="hidden" name="_target_path" value="/account" />
- #}
- <button type="submit">Login</button>
- </form>
- {% endblock %}
Add Comment
Please, Sign In to add comment