{# Copyright 2024, 2025 New Vector Ltd. Copyright 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. -#} {% macro form(class="") -%} {%- if captcha|default(False) -%} {%- if captcha.service == "recaptcha_v2" -%}
{%- elif captcha.service == "cloudflare_turnstile" -%} {%- elif captcha.service == "hcaptcha" -%} {%- else -%} {{ throw(message="Invalid captcha service setup") }} {%- endif %} {%- endif -%} {% endmacro %} {% macro head() -%} {%- if captcha|default(False) -%} {%- if captcha.service == "recaptcha_v2" -%} {%- elif captcha.service == "cloudflare_turnstile" -%} {%- elif captcha.service == "hcaptcha" -%} {%- else -%} {{ throw(message="Invalid captcha service setup") }} {%- endif %} {%- endif -%} {%- endmacro %}