Commit graph

3 commits

Author SHA1 Message Date
Umherirrender 81d0c7bcd4 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I325f5bab163cddf76dbf8d5a6eca35a7ed7b6df7
2024-06-08 23:46:45 +02:00
Reedy 8d3afbd390 Turnstile: Minor cleanup
Bug: T319068
Follows-Up: I0d5a74655619975f0bf61b5b672159afe5f4fb00
Change-Id: I15c26957158f22a0b6d6abb9def0e84e73c63ddc
2024-01-15 20:04:49 +00: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