Turnstile and captcha.yaml -> No forwarding after successful check (crowdsec_manager discussion #26)

:speech_balloon: GitHub discussion crowdsec_manager #26 in Q&A, started by andbez on GitHub

Hui,

first let me thank you for your Application and good documentation. It was a lot of work to provide this piece of software.
I got everything up and running (just a minor issue with the folder for the captcha.yaml. When I change the folder in Traefik, Captcha HTML is shown, but it is marked as missing in your Application).
But: Using your captcha-Example and set up for turnstile, I can see the Cloudflare-Check, but after check was successful, nothing happens, e.g. it does not forward to the page I want to go.
Any idea what I am missing?

Thanks again,

Best
Andreas


:speech_balloon: Join in here or on GitHub.

anntnzrb commented on GitHub:

In internal/api/handlers/captcha.go line 105-106, the {{.RedirectURL}} is replaced with empty string, making the form submit to nowhere. Fix: Either set a proper redirect URL in the template replacement OR ensure the CrowdSec bouncer plugin is properly handling captcha validation at the middleware level. The template also needs data-callback="captchaCallback" with a 500ms delay instead of immediate submission (reference the official plugin’s captcha.html).

hhftechnology commented on GitHub:

@​anntnzrb thanks for the fix, will look into it,
@​andbez will fix the issue in the next release