mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +00:00
fbf6c1c7ea
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
64 lines
1.3 KiB
JSON
64 lines
1.3 KiB
JSON
{
|
|
"name": "Turnstile",
|
|
"author": [
|
|
"Jayden Bailey",
|
|
"..."
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:ConfirmEdit",
|
|
"descriptionmsg": "turnstile-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "antispam",
|
|
"MessagesDirs": {
|
|
"Turnstile": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\Extension\\ConfirmEdit\\Turnstile\\": "includes/"
|
|
},
|
|
"config": {
|
|
"CaptchaClass": {
|
|
"value": "MediaWiki\\Extension\\ConfirmEdit\\Turnstile\\Turnstile"
|
|
},
|
|
"TurnstileSiteKey": {
|
|
"value": ""
|
|
},
|
|
"TurnstileSecretKey": {
|
|
"value": ""
|
|
},
|
|
"TurnstileSendRemoteIP": {
|
|
"value": false
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "resources",
|
|
"remoteExtPath": "ConfirmEdit/Turnstile/resources"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.confirmEdit.turnstile.visualEditor": {
|
|
"scripts": "ve-confirmedit-turnstile/ve.init.mw.TurnstileSaveErrorHandler.js",
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
}
|
|
},
|
|
"HookHandlers": {
|
|
"TurnstileHooks": {
|
|
"class": "MediaWiki\\Extension\\ConfirmEdit\\Turnstile\\Hooks"
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"ResourceLoaderGetConfigVars": "TurnstileHooks"
|
|
},
|
|
"attributes": {
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.confirmEdit.turnstile.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|