{# The login form itself, shared by security/login.html.twig and security/login_oauth2.html.twig so the field names, the CSRF token id and the error rendering cannot drift between the two pages. Expects `error` and `last_username` from the including template's context. #} {% if error %} {% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %} {% endif %}