46 'label' =>
wfMessage(
'authmanager-email-label' ),
47 'help' =>
wfMessage(
'authmanager-email-help' ),
52 'label' =>
wfMessage(
'authmanager-realname-label' ),
53 'help' =>
wfMessage(
'authmanager-realname-help' ),
58 if ( !$config->get(
'EnableEmail' ) ) {
59 unset( $ret[
'email'] );
62 if ( in_array(
'realname', $config->get(
'HiddenPrefs' ),
true ) ) {
63 unset( $ret[
'realname'] );
77 if ( $this->email !==
null && $this->email !==
'' ) {
78 if ( !\Sanitizer::validateEmail( $this->email ) ) {
79 return StatusValue::newFatal(
'invalidemailaddress' );
81 $user->setEmail( $this->email );
83 if ( $this->realname !==
null && $this->realname !==
'' ) {
84 $user->setRealName( $this->realname );
86 return StatusValue::newGood();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...