1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-26 01:43:45 +02:00

[ticket/15937] Google reCAPTCHA v3 Plugin

PHPBB3-15937
This commit is contained in:
mrgoldy
2020-03-14 14:42:08 +01:00
parent b732b4d8c8
commit 0c63f03db4
8 changed files with 507 additions and 36 deletions

View File

@@ -0,0 +1,13 @@
{% if S_RECAPTCHA_AVAILABLE %}
<noscript>
<div>{{ lang('RECAPTCHA_NOSCRIPT') }}</div>
</noscript>
<script src="{{ U_RECAPTCHA_SCRIPT }}" async defer></script>
{# The g-recaptcha class is used in JavaScript #}
<input class="g-recaptcha" type="hidden" name="recaptcha_action" value="{{ RECAPTCHA_ACTION }}" data-recaptcha-v3="{{ RECAPTCHA_KEY }}">
<input type="hidden" name="recaptcha_token" value="">
{% else %}
{{ lang('RECAPTCHA_NOT_AVAILABLE') }}
{% endif %}