X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/bc6f258adb7e7b41371750d99e9803759143c316..20e6d4524062198d6521c5e692e73c57984a322a:/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 18c9d7e74..50e1d4801 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'] = false; +wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/ReCaptchaNoCaptcha' ) ); +$wgCaptchaClass = 'ReCaptchaNoCaptcha'; +$wgReCaptchaSendRemoteIP = true; +$wgReCaptchaSiteKey = '<%= @public_key %>'; +$wgReCaptchaSecretKey = '<%= @private_key %>'; + +$wgCaptchaTriggers['addurl'] = true; +$wgCaptchaTriggers['create'] = true; + +$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true;