1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/17413] Make turnstile captcha work on registration page

PHPBB-17413
This commit is contained in:
Marc Alexander
2024-10-13 11:04:59 +02:00
parent 01dd0b168a
commit 8290cdb7e7
7 changed files with 127 additions and 57 deletions

View File

@@ -0,0 +1,12 @@
{% if S_TURNSTILE_AVAILABLE %}
<noscript>
<div>{{ lang('CAPTCHA_TURNSTILE_NOSCRIPT') }}</div>
</noscript>
<script src="{{ U_TURNSTILE_SCRIPT }}" async defer></script>
{# The cf-turnstile class is used in JavaScript #}
<div class="cf-turnstile" data-sitekey="{{ TURNSTILE_SITEKEY }}"></div>
{% else %}
{{ lang('CAPTCHA_TURNSTILE_NOT_AVAILABLE') }}
{% endif %}