main.js: rework dynamic captcha rendering to correctly reset when a user posts

This commit is contained in:
Zankaria 2024-08-04 00:48:12 +02:00
parent 95d5ec6cc6
commit 584fac7caa
2 changed files with 16 additions and 1 deletions

View file

@ -117,7 +117,7 @@
{{ antibot.html() }}
</th>
<td>
<div class="cf-turnstile" data-sitekey="{{ config.turnstile_public }}" data-action="{{ form_action_type }}"></div>
<div class="captcha-container" data-sitekey="{{ config.turnstile_public }}" data-action="{{ form_action_type }}"></div>
{{ antibot.html() }}
</td>
</tr>