X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d0a6dd09b9cd9d1c493c15adfd25b880f505e9af..HEAD:/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 56e0b640a..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,11 +1,12 @@ '; -$recaptcha_private_key = '<%= @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 ];