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