{# Copyright 2024 New Vector Ltd. Copyright 2022-2024 The Matrix.org Foundation C.I.C. SPDX-License-Identifier: AGPL-3.0-only Please see LICENSE in the repository root for full details. -#} {% extends "base.html" %} {% block content %}
{{ icon.error_solid() }}

{{ _("mas.policy_violation.heading") }}

{{ _("mas.policy_violation.description") }}

{% if client.logo_uri %} {% endif %}
{{ client.client_name or client.client_id }}

{{ _("mas.policy_violation.logged_as", username=current_session.user.username) }}

{{ logout.button(text=_("action.sign_out"), csrf_token=csrf_token, post_logout_action=action, as_link=True) }}
{# We only show the cancel button if we're in an authorization code flow, not in the device code flow. #} {% if grant.grant_type == "authorization_code" %} {{ back_to_client.link( text=_("action.cancel"), destructive=True, uri=grant.redirect_uri, mode=grant.response_mode, params=dict(error="access_denied", state=grant.state) ) }} {% endif %}
{% endblock content %}