[go: up one dir, main page]

Page MenuHomePhabricator

Add help messages to params specified by ApiCreateTempUserTrait
Closed, ResolvedPublic

Description

ApiCreateTempUserTrait builds a redirect URL to allow central logging in. It also adds params for specifying where to return to after logging in.

protected function getCreateTempUserParams(): array {
	return [
		'returnto' => [
			ParamValidator::PARAM_TYPE => 'title',
		],
		'returntoquery' => [
			ParamValidator::PARAM_TYPE => 'string',
			ParamValidator::PARAM_DEFAULT => '',
		],
		'returntoanchor' => [
			ParamValidator::PARAM_TYPE => 'string',
			ParamValidator::PARAM_DEFAULT => '',
		],
	];
}

We should add the documentation messages to these specs: apihelp-edit-param-returnto, apihelp-edit-param-returntoquery, apihelp-edit-param-returntoanchor.

Event Timeline

Change 1003386 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/core@master] Add API help messages to ApiCreateTempUserTrait

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

Change 1003386 merged by jenkins-bot:

[mediawiki/core@master] Add API help messages to ApiCreateTempUserTrait

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