{# templates/login/index.html.twig #} {% extends 'base.html.twig' %} {# ... #} {% block body %} {% if error %}
{{ error.messageKey|trans(error.messageData, 'security') }}
{% endif %}
{# If you want to control the URL the user is redirected to on success #}
{% endblock %}