mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-15 03:35:15 +00:00
824ef272dd
Since AbstractAuthenticationProvider ::setLogger, ::setManager, ::setConfig, ::setHookContainer methods had been soft deprecated, so its usages were removed. AuthenticationProviderTestTrait ::initProvider was used in order to initialize CaptchaPreAuthenticationProvider in the test. * Also bump required MW version to 1.37.0 Bug: T281993 Change-Id: I9a139433b089597a2a5dfb7e23338fc8f7183b47
181 lines
4.4 KiB
JSON
181 lines
4.4 KiB
JSON
{
|
|
"@doc": "Please read README.md",
|
|
"name": "ConfirmEdit",
|
|
"version": "1.6.0",
|
|
"author": [
|
|
"Brion Vibber",
|
|
"Florian Schmidt",
|
|
"Sam Reed",
|
|
"..."
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:ConfirmEdit",
|
|
"descriptionmsg": "captcha-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "antispam",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.37.0"
|
|
},
|
|
"GroupPermissions": {
|
|
"*": {
|
|
"skipcaptcha": false
|
|
},
|
|
"user": {
|
|
"skipcaptcha": false
|
|
},
|
|
"autoconfirmed": {
|
|
"skipcaptcha": false
|
|
},
|
|
"bot": {
|
|
"skipcaptcha": true
|
|
},
|
|
"sysop": {
|
|
"skipcaptcha": true
|
|
}
|
|
},
|
|
"AvailableRights": [
|
|
"skipcaptcha"
|
|
],
|
|
"GrantPermissions": {
|
|
"basic": {
|
|
"skipcaptcha": true
|
|
}
|
|
},
|
|
"ExtensionFunctions": [
|
|
"ConfirmEditHooks::confirmEditSetup"
|
|
],
|
|
"SpecialPages": {
|
|
"Captcha": "SpecialCaptcha"
|
|
},
|
|
"MessagesDirs": {
|
|
"ConfirmEdit": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"ConfirmEditAlias": "ConfirmEdit.alias.php"
|
|
},
|
|
"AutoloadClasses": {
|
|
"ConfirmEditHooks": "includes/ConfirmEditHooks.php",
|
|
"SimpleCaptcha": "SimpleCaptcha/SimpleCaptcha.php",
|
|
"CaptchaStore": "includes/store/CaptchaStore.php",
|
|
"CaptchaSessionStore": "includes/store/CaptchaSessionStore.php",
|
|
"CaptchaCacheStore": "includes/store/CaptchaCacheStore.php",
|
|
"CaptchaHashStore": "includes/store/CaptchaHashStore.php",
|
|
"CaptchaTriggers": "includes/CaptchaTriggers.php",
|
|
"SpecialCaptcha": "includes/specials/SpecialCaptcha.php",
|
|
"CaptchaPreAuthenticationProvider": "includes/auth/CaptchaPreAuthenticationProvider.php",
|
|
"CaptchaAuthenticationRequest": "includes/auth/CaptchaAuthenticationRequest.php"
|
|
},
|
|
"TestAutoloadClasses": {
|
|
"HTMLFancyCaptchaField": "FancyCaptcha/includes/HTMLFancyCaptchaField.php",
|
|
"HTMLReCaptchaNoCaptchaField": "ReCaptchaNoCaptcha/includes/HTMLReCaptchaNoCaptchaField.php",
|
|
"ReCaptchaNoCaptchaAuthenticationRequest": "ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaAuthenticationRequest.php"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.confirmEdit.editPreview.ipwhitelist.styles": {
|
|
"styles": "ext.confirmEdit.editPreview.ipwhitelist.styles.css"
|
|
},
|
|
"ext.confirmEdit.visualEditor": {
|
|
"scripts": "ve-confirmedit/ve.init.mw.CaptchaSaveErrorHandler.js",
|
|
"dependencies": "ext.confirmEdit.CaptchaInputWidget",
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.confirmEdit.simpleCaptcha": {
|
|
"styles": "../SimpleCaptcha/resources/ext.confirmEdit.simpleCaptcha.css"
|
|
}
|
|
},
|
|
"attributes": {
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.confirmEdit.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "resources",
|
|
"remoteExtPath": "ConfirmEdit/resources"
|
|
},
|
|
"HookHandlers": {
|
|
"ConfirmEditHooks": {
|
|
"class": "ConfirmEditHooks"
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"EditPageBeforeEditButtons": "ConfirmEditHooks",
|
|
"EmailUserForm": "ConfirmEditHooks",
|
|
"EmailUser": "ConfirmEditHooks",
|
|
"PageSaveComplete": "ConfirmEditHooks",
|
|
"TitleReadWhitelist": "ConfirmEditHooks",
|
|
"AlternateEditPreview": "ConfirmEditHooks",
|
|
"ResourceLoaderRegisterModules": "ConfirmEditHooks",
|
|
"EditPage::showEditForm:fields": "ConfirmEditHooks::showEditFormFields",
|
|
"EditFilterMergedContent": "ConfirmEditHooks::confirmEditMerged",
|
|
"APIGetAllowedParams": "ConfirmEditHooks::onAPIGetAllowedParams",
|
|
"AuthChangeFormFields": "ConfirmEditHooks::onAuthChangeFormFields"
|
|
},
|
|
"AuthManagerAutoConfig": {
|
|
"preauth": {
|
|
"CaptchaPreAuthenticationProvider": {
|
|
"class": "CaptchaPreAuthenticationProvider",
|
|
"sort": 10
|
|
}
|
|
}
|
|
},
|
|
"config": {
|
|
"CaptchaWhitelistIP": {
|
|
"value": false
|
|
},
|
|
"Captcha": {
|
|
"value": null
|
|
},
|
|
"CaptchaTriggers": {
|
|
"value": {
|
|
"edit": false,
|
|
"create": false,
|
|
"sendemail": false,
|
|
"addurl": true,
|
|
"createaccount": true,
|
|
"badlogin": true,
|
|
"badloginperuser": true
|
|
},
|
|
"merge_strategy": "array_plus"
|
|
},
|
|
"CaptchaTriggersOnNamespace": {
|
|
"value": {},
|
|
"merge_strategy": "array_plus_2d"
|
|
},
|
|
"CaptchaStorageClass": {
|
|
"value": "CaptchaSessionStore"
|
|
},
|
|
"CaptchaSessionExpiration": {
|
|
"value": 1800
|
|
},
|
|
"CaptchaBadLoginExpiration": {
|
|
"value": 300
|
|
},
|
|
"CaptchaBadLoginPerUserExpiration": {
|
|
"value": 600
|
|
},
|
|
"AllowConfirmedEmail": {
|
|
"value": false
|
|
},
|
|
"CaptchaBadLoginAttempts": {
|
|
"value": 3
|
|
},
|
|
"CaptchaBadLoginPerUserAttempts": {
|
|
"value": 20
|
|
},
|
|
"CaptchaWhitelist": {
|
|
"value": false
|
|
},
|
|
"CaptchaRegexes": {
|
|
"value": []
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|