Topic on Extension talk:ConfirmAccount

Field Real name required

2
Waanders (talkcontribs)

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

Chrishel (talkcontribs)

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;
    }
}
Reply to "Field Real name required"