{% extends 'HWIOAuthBundle::layout.html.twig' %} {% block hwi_oauth_content %} {% if error %}
{{ error }}
{% endif %} {# 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 %}
{% if packagist_host and packagist_host in app.request.headers.get('Referer') %} {% endif %}

Forgot password? {% for owner in hwi_oauth_resource_owners() %}
{% endfor %}

{% else %} {% for owner in hwi_oauth_resource_owners() %} Login with {{ owner | trans({}, 'HWIOAuthBundle') }}
{% endfor %} {% endif %} {% endblock hwi_oauth_content %}