X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/979e98164cc9a6d7216197f01febc918c9a152b9..992c65c482fc4fb8a784a010fe2288257553d840:/cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb?ds=sidebyside 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..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 %>'; +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;