Commit graph

2 commits

Author SHA1 Message Date
Umherirrender a672544be1 Turnstile: Drop RL targets definitions, no longer honoured
Bug: T328497
Follow-Up: Id8501de1d372b7eca8e49c669d401322b2a51371
Change-Id: Ibc1ba4895a38f7f34838e4f4faa8144b0f889d76
2024-01-24 00:00:04 +01:00
Jayden Bailey fbf6c1c7ea Add Turnstile support
This is a rudimentary implementation of Cloudflare's Turnstile captcha alternative.

Since it is fairly similar to ReCaptchaNoCaptcha, there is some duplicate code used here. I opted not to use the migration path that CF has for reCAPTCHA v2 and build this as a separate implementation. After T324925, it should be easy to refactor this code.

Users should set $wgTurnstileSiteKey and $wgTurnstileSecretKey as appropriate, based on details from the Cloudflare dashboard.

Bug: T319068
Change-Id: I0d5a74655619975f0bf61b5b672159afe5f4fb00
2024-01-15 19:31:24 +00:00