Page MenuHomePhabricator

hCaptcha: Enable on API account creations on test2wiki
Closed, ResolvedPublic

Description

Summary

Our existing code in mediawiki-config disables hCaptcha on API account creations:

	$wgCaptchaTriggers['createaccount'] = [
			'trigger' => true,
			// If this is an API context, use the FancyCaptcha class for now, as mobile apps
			// do not yet support hCaptcha (T379190)
			'class' => ( defined( 'MW_API' ) || defined( 'MW_REST_API' ) ) ?
				'FancyCaptcha' :
				'HCaptcha',
		];

We need to re-enable it for test2wiki only, to facilitate mobile apps team testing.

Acceptance criteria

  • API account creation requests on test2wiki use hCaptcha, and not FancyCaptcha

Event Timeline

Change #1189879 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[operations/mediawiki-config@master] hCaptcha: Enable on API account creation on test2wiki

https://gerrit.wikimedia.org/r/1189879

Change #1189879 merged by jenkins-bot:

[operations/mediawiki-config@master] hCaptcha: Enable on API account creation on test2wiki

https://gerrit.wikimedia.org/r/1189879

Mentioned in SAL (#wikimedia-operations) [2025-09-22T06:40:44Z] <kharlan@deploy1003> Started scap sync-world: Backport for [[gerrit:1189879|hCaptcha: Enable on API account creation on test2wiki (T405107)]]

Mentioned in SAL (#wikimedia-operations) [2025-09-22T07:04:43Z] <kharlan@deploy1003> kharlan: Backport for [[gerrit:1189879|hCaptcha: Enable on API account creation on test2wiki (T405107)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-09-22T07:18:26Z] <kharlan@deploy1003> Finished scap sync-world: Backport for [[gerrit:1189879|hCaptcha: Enable on API account creation on test2wiki (T405107)]] (duration: 37m 41s)