dece
e3d80d1093
1. Users 2. Login/logout controllers 3. Podcasts can have an owner to restrict their access in the backoffice
26 lines
833 B
Twig
26 lines
833 B
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Login{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>Login</h1>
|
|
{% if error %}
|
|
<p>{{ error.messageKey|trans(error.messageData, 'security') }}</p>
|
|
{% endif %}
|
|
|
|
<form action="{{ path('app_login') }}" method="post">
|
|
<label for="username">Email:</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
|
|
<input type="hidden" name="_target_path" value="/account"> #}
|
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
|
|
|
<button type="submit">Login</button>
|
|
</form>
|
|
{% endblock %}
|