1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

Cloudflare Turnstile support

This commit is contained in:
Quentin Gliech
2024-05-11 10:29:45 +02:00
parent a3beeb2398
commit f9ae7ae313
7 changed files with 25 additions and 3 deletions

View File

@ -23,6 +23,10 @@ pub enum CaptchaServiceKind {
/// Use Google's reCAPTCHA v2 API
#[serde(rename = "recaptcha_v2")]
RecaptchaV2,
/// Use Cloudflare Turnstile
#[serde(rename = "cloudflare_turnstile")]
CloudflareTurnstile,
}
/// Configuration section to setup CAPTCHA protection on a few operations