X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7dc52ddeb2479043554aa05956b472e8c8098150..cc9bbcf89afcfd13e5e994248f7531a51e280f0c:/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb diff --git a/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb index 50e1d4801..2e0af37ba 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb @@ -1,12 +1,12 @@ '; -$wgReCaptchaSecretKey = '<%= @private_key %>'; - -$wgCaptchaTriggers['addurl'] = true; -$wgCaptchaTriggers['create'] = true; +wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/hCaptcha' ) ); +$wgHCaptchaSendRemoteIP = true; +$wgHCaptchaSiteKey = '<%= @public_key %>'; +$wgHCaptchaSecretKey = '<%= @private_key %>'; $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true; +$wgGroupPermissions['bot' ]['skipcaptcha'] = true; +$wgGroupPermissions['sysop' ]['skipcaptcha'] = true; + +$wgRateLimits['badcaptcha']['newbie'] = [ 100, 86400 ];