{% extends "FOSUserBundle::layout.html.twig" %} {% trans_default_domain 'FOSUserBundle' %} {% block fos_user_header %} {% endblock %} {% block fos_user_content %} {# HWIOAuthBundle uses the same template for the login and the connect functionality currently so we need to check if the user is already authenticated. #} {% if not app.user %}

Sign in

{% if error is defined and error is not empty %}
{{ error }}
{% endif %}
Forgot password?
{% if packagist_host and packagist_host in app.request.headers.get('Referer') %} {% endif %}

{% endif %} {% for owner in hwi_oauth_resource_owners() %} {% if not app.user %}
{% endif %}
Login with {{ owner | trans({}, 'HWIOAuthBundle') }}{% if not loop.last %}
{% endif %}
{% endfor %} {% endblock %}