User:Ammarpad/sandbox

From MediaWiki.org
Jump to navigation Jump to search
// Check the password "remember me" box by default (sitewide)
$wgHooks['AuthChangeFormFields'][] = function ($requests, $fieldInfo, &$formDescriptor, $action) {
	$formDescriptor['rememberMe'] = ['type' => 'check', 'default' => true ];
 	return true;
};