38 'label' =>
wfMessage(
'authmanager-email-label' ),
39 'help' =>
wfMessage(
'authmanager-email-help' ),
44 'label' =>
wfMessage(
'authmanager-realname-label' ),
45 'help' =>
wfMessage(
'authmanager-realname-help' ),
51 unset( $ret[
'email'] );
55 unset( $ret[
'realname'] );
70 if ( $this->email !==
null && $this->email !==
'' ) {
71 if ( !Sanitizer::validateEmail( $this->email ) ) {
72 return StatusValue::newFatal(
'invalidemailaddress' );
74 $user->setEmail( $this->email );
76 if ( $this->realname !==
null && $this->realname !==
'' ) {
77 $user->setRealName( $this->realname );
79 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.