{% set home_title = app['conf'].get(['registry', 'general', 'title']) %}

{{home_title}}

{% if not app.getAuthenticator().isAuthenticated() %}
{% for key,value in auth.getParams %} {% endfor %} {% if errorMessage %} {% endif %}

{{ 'Problemes de connexion ?' | trans }}

{% else %} {% if app.getAuthenticatedUser() is not none %} {% set username = '' ~ app.getAuthenticatedUser().getDisplayName() ~ '' %}
{% endif %} {% if auth.getClient() is not none %}

{% trans %}Autorisation d'acces{% endtrans %}

{% set application_name = '' ~ auth.getClient.get_name() ~ '' %}

{% trans with {'%application_name%' : application_name, '%home_title%' : home_title} %}Autorisez-vous l'application %application_name% a acceder a votre contenu sur %home_title% ?{% endtrans %}

{% endif %}
{% for key,value in auth.getParams %} {% endfor %}
{% for key,value in auth.getParams %} {% endfor %}
{% endif %}