X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6d0cd3cd047cf2dc6d47d6482865d7aafe2588d2..2f3e72b70cb401b318aafce1d1f7f22cc503eccc:/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 0bb3b91ff..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,7 +1,12 @@ '; -$recaptcha_private_key = '<%= @private_key %>'; -$wgCaptchaTriggers['addurl'] = 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 ];