captcha_script.html: use new config style

This commit is contained in:
Zankaria 2025-02-08 18:14:32 +01:00
parent a45b40f59c
commit d34b1e105e

View file

@ -1,6 +1,6 @@
{% if config.hcaptcha %}
{% if config.captcha.mode == 'hcaptcha' %}
<script src="https://js.hcaptcha.com/1/api.js?recaptchacompat=off&render=explicit&onload=onCaptchaLoadHcaptcha" async defer></script>
{% endif %}
{% if config.turnstile %}
{% if config.captcha.mode == 'turnstile' %}
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onCaptchaLoadTurnstile_{{ form_action_type }}" async defer></script>
{% endif %}