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
} else {
wfDebug( 'User does not have editmyprivateinfo right or has just been created.' );
$user->mRealName = $realname;
$user->mEmail = $email;
if ( $email && Sanitizer::validateEmail( $email ) ) {
$user->mEmail = $email;
$user->confirmEmail();
}
$user->saveSettings();
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