{# Copyright 2024, 2025 New Vector Ltd. Copyright 2022-2024 The Matrix.org Foundation C.I.C. SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. -#} {% set consent_page = true %} {% extends "base.html" %} {% block content %} {% set client_name = client.client_name or client.client_id %}
{% if client.logo_uri %} {% else %} {% endif %}

{{ _('mas.consent.continue_to', client_name=client_name) }}

{% call(scopes) scope.unsafe_scopes(scopes=grant.scope.split(" ")) %} {% if scopes is not empty %}

{{ _('mas.consent.scope_list_preface', client_name=client_name) }}

{% endif %} {% endcall %} {% set initial -%} {%- if matrix_user.display_name -%} {{- matrix_user.display_name[0] | upper -}} {%- else -%} {{- matrix_user.mxid[1] | upper -}} {%- endif -%} {%- endset %}
{{ initial }}
{{ matrix_user.display_name or current_session.user.username }}
{{ matrix_user.mxid }}
{{ button.button(text=_("action.continue")) }}
{% call logout.button(csrf_token=csrf_token, post_logout_action=action) %} {% endcall %} {{ back_to_client.link( text=_("action.cancel"), kind="tertiary", uri=grant.redirect_uri, mode=grant.response_mode, params=dict(error="access_denied", state=grant.state) ) }}
{% endblock content %}