post_form.html: use new config style

This commit is contained in:
Zankaria 2025-02-08 18:14:52 +01:00
parent d34b1e105e
commit 4eb12479ec

View file

@ -90,8 +90,8 @@
{% endif %} {% endif %}
</td> </td>
</tr>{% endif %} </tr>{% endif %}
{% if config.recaptcha %} {% if config.captcha.mode == 'recaptcha' %}
{% if config.dynamic_captcha %} {% if config.captcha.dynamic %}
<tr id="captcha" style="display: none;"> <tr id="captcha" style="display: none;">
{% else %} {% else %}
<tr> <tr>
@ -101,13 +101,13 @@
{{ antibot.html() }} {{ antibot.html() }}
</th> </th>
<td> <td>
<div class="g-recaptcha" data-sitekey="{{ config.recaptcha_public }}"></div> <div class="g-recaptcha" data-sitekey="{{ config.captcha.recaptcha.public }}"></div>
{{ antibot.html() }} {{ antibot.html() }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% if config.hcaptcha or config.turnstile %} {% if config.captcha.mode == 'hcaptcha' or config.captcha.mode == 'turnstile' %}
{% if config.dynamic_captcha %} {% if config.captcha.dynamic %}
<tr id="captcha" style="display: none;"> <tr id="captcha" style="display: none;">
{% else %} {% else %}
<tr> <tr>