mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 06:21:19 +02:00
Merge pull request #6737 from marc1706/feature/captcha_v2
[feature/captcha_v2] Refactor captcha classes and implement turnstile captcha
This commit is contained in:
23
phpBB/styles/prosilver/template/captcha_turnstile.html
Normal file
23
phpBB/styles/prosilver/template/captcha_turnstile.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% if CONFIRM_TYPE_REGISTRATION %}
|
||||
<div class="panel captcha-panel">
|
||||
<div class="inner">
|
||||
<h3 class="captcha-title">{{ lang('CONFIRMATION') }}</h3>
|
||||
<fieldset class="fields2">
|
||||
{% endif %}
|
||||
{% 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-language="{{ lang('TURNSTILE_LANG') }}" data-sitekey="{{ TURNSTILE_SITEKEY }}"{% if TURNSTILE_THEME %} data-theme="{{ TURNSTILE_THEME }}"{% endif %}></div>
|
||||
{% else %}
|
||||
{{ lang('CAPTCHA_TURNSTILE_NOT_AVAILABLE') }}
|
||||
{% endif %}
|
||||
{% if CONFIRM_TYPE_REGISTRATION %}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
Reference in New Issue
Block a user