property :admin_password, :kind_of => String, :required => [:create]
property :private_accounts, :kind_of => [TrueClass, FalseClass], :default => false
property :private_site, :kind_of => [TrueClass, FalseClass], :default => false
-property :hcaptcha_public_key, :kind_of => String, :default => ""
-property :hcaptcha_private_key, :kind_of => String, :default => ""
+property :turnstile_site_key, :kind_of => String, :default => ""
+property :turnstile_secret_key, :kind_of => String, :default => ""
property :extra_file_extensions, :kind_of => [String, Array], :default => []
property :namespaces, :kind_of => Hash, :default => {}
property :force_ui_messages, :kind_of => Array, :default => []
mediawiki_extension "ConfirmEdit" do
site new_resource.site
template "mw-ext-ConfirmEdit.inc.php.erb"
- variables :public_key => new_resource.hcaptcha_public_key,
- :private_key => new_resource.hcaptcha_private_key
+ variables :turnstile_site_key => new_resource.turnstile_site_key,
+ :turnstile_secret_key => new_resource.turnstile_secret_key
update_site false
end
end
<?php
# DO NOT EDIT - This file is being maintained by Chef
-wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/hCaptcha' ) );
-$wgHCaptchaSendRemoteIP = true;
-$wgHCaptchaSiteKey = '<%= @public_key %>';
-$wgHCaptchaSecretKey = '<%= @private_key %>';
+wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/Turnstile' ]);
+$wgCaptchaClass = MediaWiki\Extension\ConfirmEdit\Turnstile\Turnstile::class;
+
+$wgTurnstileSiteKey= '<%= @turnstile_site_key %>';
+$wgTurnstileSecretKey= '<%= @turnstile_secret_key %>';
+$wgTurnstileSendRemoteIP = true;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true;
$wgGroupPermissions['bot' ]['skipcaptcha'] = true;
metanamespace "Wiki"
- hcaptcha_public_key "b67a410b-955e-4049-b432-f9c00e0202c0"
- hcaptcha_private_key passwords["hcaptcha"]
+ turnstile_site_key passwords["turnstile_site_key"]
+ turnstile_secret_key passwords["turnstile_secret_key"]
namespaces "DE" => { :id => 200, :talk_id => 201 },
"FR" => { :id => 202, :talk_id => 203 },
{
"database": "database_password",
"admin": "admin_password",
- "hcaptcha": "precaptcha_token",
- "thunderforest": "thunderforest_token"
+ "thunderforest": "thunderforest_token",
+ "turnstile_site_key": "turnstile_site_key_value",
+ "turnstile_secret_key": "turnstile_secret_key_value"
}