Add hCaptcha support alongside Turnstile and reCAPTCHA
CI / check (push) Successful in 1m9s
CI / release (push) Skipped
CI / deploy (push) Successful in 2m6s

- Add hcaptcha_site_key and hcaptcha to captcha_provider options in admin settings
- Update captcha.ts server-side verification for hCaptcha (new endpoint + secret key)
- Add hCaptcha widget rendering in register-form.tsx
- All TypeScript and Biome checks pass
This commit is contained in:
openhands committed 2026-08-14 17:04:34 +02:00
1 parent 1bca9657fa
commit 0f35bc8529
3 files changed
+34 -8

No files matched your search

+3
View File
@@ -322,6 +322,9 @@ export function RegisterForm({
{showCaptcha && captcha.provider === "recaptcha" && (
<div className="g-recaptcha" data-sitekey={captcha.siteKey} />
)}
{showCaptcha && captcha.provider === "hcaptcha" && (
<div className="h-captcha" data-sitekey={captcha.siteKey} />
)}
{/* Submit */}
<button