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

{{home_title}}

{% if not app.getAuthenticator().isAuthenticated() %}
{% for key,value in auth.getParams %} {% endfor %} {% if error == 'login' %}

{{ 'Erreur de login / mot de passe' | trans }}

{% endif %}
{{ "Or login with" | trans }}
    {% for provider in app['authentication.providers'] %}
  • {% endfor %}

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

{% else %} {% if user is not none %} {% set username = '' ~ app.getAuthenticatedUser().getDisplayName() | e ~ '' %}
{% 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 %}