leftypol/templates/captcha_script.html

6 lines
404 B
HTML

{% 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.captcha.mode == 'turnstile' %}
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onCaptchaLoadTurnstile_{{ form_action_type }}" async defer></script>
{% endif %}