Is it possible to make the RealName field a required field? minWords-param Biography doesn't work for RealName (I also checked AccountRequestSubmission.php).
We use the MW1.27 version of ConfirmAccount.
Regards, Jethro
Is it possible to make the RealName field a required field? minWords-param Biography doesn't work for RealName (I also checked AccountRequestSubmission.php).
We use the MW1.27 version of ConfirmAccount.
Regards, Jethro
You can do it with a the hook AuthChangeFormFields. Something like this...
public static function onAuthChangeFormFields( $requests, $fieldInfo, &$formDescriptor, $action ) {
if( isset( $formDescriptor[ 'realname' ] ) ) {
$formDescriptor[ 'realname' ][ 'required' ] = true;
}
}