53 'label' =>
wfMessage(
'authmanager-email-label' ),
54 'help' =>
wfMessage(
'authmanager-email-help' ),
59 'label' =>
wfMessage(
'authmanager-realname-label' ),
60 'help' =>
wfMessage(
'authmanager-realname-help' ),
66 unset( $ret[
'email'] );
70 unset( $ret[
'realname'] );
85 if ( $this->email !==
null && $this->email !==
'' ) {
86 if ( !Sanitizer::validateEmail( $this->email ) ) {
87 return StatusValue::newFatal(
'invalidemailaddress' );
89 $user->setEmail( $this->email );
91 if ( $this->realname !==
null && $this->realname !==
'' ) {
92 $user->setRealName( $this->realname );
94 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.