1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +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

@@ -129,6 +129,9 @@ pub fn captcha_config_from_config(
let service = match service {
mas_config::CaptchaServiceKind::RecaptchaV2 => mas_data_model::CaptchaService::RecaptchaV2,
mas_config::CaptchaServiceKind::CloudflareTurnstile => {
mas_data_model::CaptchaService::CloudflareTurnstile
}
};
Ok(Some(mas_data_model::CaptchaConfig {