]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/templates/default/mw-ext-ConfirmEdit.inc.php.erb
Merge remote-tracking branch 'github/pull/572'
[chef.git] / cookbooks / mediawiki / templates / default / mw-ext-ConfirmEdit.inc.php.erb
index 0bb3b91ff4ca9b6d2c9c99ab45feb0bcc41eacd8..2e0af37bab4520d2a46cd754620e7a1de43afd1b 100644 (file)
@@ -1,7 +1,12 @@
 <?php
 # DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/ConfirmEdit/ReCaptcha.php' );
-$wgCaptchaClass = 'ReCaptcha';
-$recaptcha_public_key = '<%= @public_key %>';
-$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 ];