Steps to replicate the issue:
- Define no weight in config.
- Use AuthChangeFormFieldsHook to assign a weight.
public function onAuthChangeFormFields( $requests, $fieldInfo, &$formDescriptor, $action ) {
$formDescriptor['pluggableauthlogin0']['weight'] = 999;
}What happens?:
weight is ignored.
PluggableAuthService::moveLoginButton applies the configuration-defined weight if present, but otherwise defaults to 101.
What should have happened instead?:
weight applied.
Use the config-defined weight if available.
Otherwise fall back to the weight set in $formDescriptor by AuthChangeFormFieldsHook,
If neither is set, default to 101.
Software version:
master

