51 'label' =>
wfMessage(
'authmanager-email-label' ),
52 'help' =>
wfMessage(
'authmanager-email-help' ),
57 'label' =>
wfMessage(
'authmanager-realname-label' ),
58 'help' =>
wfMessage(
'authmanager-realname-help' ),
63 if ( !$config->get(
'EnableEmail' ) ) {
64 unset( $ret[
'email'] );
67 if ( in_array(
'realname', $config->get(
'HiddenPrefs' ),
true ) ) {
68 unset( $ret[
'realname'] );
83 if ( $this->email !==
null && $this->email !==
'' ) {
84 if ( !\Sanitizer::validateEmail( $this->email ) ) {
85 return StatusValue::newFatal(
'invalidemailaddress' );
87 $user->setEmail( $this->email );
89 if ( $this->realname !==
null && $this->realname !==
'' ) {
90 $user->setRealName( $this->realname );
92 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,...