post_form.html: add data-action parameter to turnstile captcha

This commit is contained in:
Zankaria 2024-07-27 17:34:51 +02:00
parent 67de8df246
commit f3c45073cb
4 changed files with 19 additions and 3 deletions

View file

@ -106,6 +106,22 @@
</td>
</tr>
{% endif %}
{% if config.turnstile %}
{% if config.dynamic_captcha %}
<tr id="captcha" style="display: none;">
{% else %}
<tr>
{% endif %}
<th>
{% trans %}Verification{% endtrans %}
{{ antibot.html() }}
</th>
<td>
<div class="cf-turnstile" data-sitekey="{{ config.turnstile_public }}" data-action="{{ form_action_type }}"></div>
{{ antibot.html() }}
</td>
</tr>
{% endif %}
{% if config.securimage %}
<tr>
<th>