main.js: refactor captcha parameters to be managed in JS

This commit is contained in:
Zankaria 2024-08-04 01:16:51 +02:00
parent 584fac7caa
commit 1b3b8cb9b6
6 changed files with 29 additions and 17 deletions

View file

@ -1,3 +1,3 @@
{% if config.turnstile %}
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onCaptchaLoadTurnstile" async defer></script>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onCaptchaLoadTurnstile_{{ form_action_type }}" async defer></script>
{% endif %}