Commit 509140d9 authored by Hermann Schwärzler's avatar Hermann Schwärzler
Browse files

automatically confirm valid email addresses

parent a583d52c
...@@ -85,7 +85,10 @@ class PluggableAuthPrimaryAuthenticationProvider extends ...@@ -85,7 +85,10 @@ class PluggableAuthPrimaryAuthenticationProvider extends
} else { } else {
wfDebug( 'User does not have editmyprivateinfo right or has just been created.' ); wfDebug( 'User does not have editmyprivateinfo right or has just been created.' );
$user->mRealName = $realname; $user->mRealName = $realname;
$user->mEmail = $email; if ( $email && Sanitizer::validateEmail( $email ) ) {
$user->mEmail = $email;
$user->confirmEmail();
}
$user->saveSettings(); $user->saveSettings();
wfDebug( 'Saved updated real name and email address.' ); wfDebug( 'Saved updated real name and email address.' );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment