52 'label' =>
wfMessage(
'authmanager-email-label' ),
53 'help' =>
wfMessage(
'authmanager-email-help' ),
58 'label' =>
wfMessage(
'authmanager-realname-label' ),
59 'help' =>
wfMessage(
'authmanager-realname-help' ),
65 unset( $ret[
'email'] );
69 unset( $ret[
'realname'] );
84 if ( $this->email !==
null && $this->email !==
'' ) {
85 if ( !\Sanitizer::validateEmail( $this->email ) ) {
86 return StatusValue::newFatal(
'invalidemailaddress' );
88 $user->setEmail( $this->email );
90 if ( $this->realname !==
null && $this->realname !==
'' ) {
91 $user->setRealName( $this->realname );
93 return StatusValue::newGood();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
A class containing constants representing the names of configuration variables.
const HiddenPrefs
Name constant for the HiddenPrefs setting, for use with Config::get()
const EnableEmail
Name constant for the EnableEmail setting, for use with Config::get()
Generic operation result class Has warning/error list, boolean status and arbitrary value.