25 if ( isset( $params[
'sendConfirmationEmail'] ) ) {
26 $this->sendConfirmationEmail = (bool)$params[
'sendConfirmationEmail'];
33 if ( $this->sendConfirmationEmail ===
null ) {
34 $this->sendConfirmationEmail = $this->config->get(
'EnableEmail' )
35 && $this->config->get(
'EmailAuthentication' );
49 $this->sendConfirmationEmail
51 && !$this->manager->getAuthenticationSessionData(
'no-email' )
55 function () use ( $user ) {
56 $user = $user->getInstanceForUpdate();
57 $status = $user->sendConfirmationMail();
58 $user->saveSettings();
60 $this->logger->warning(
'Could not send confirmation email: ' .
61 $status->getWikiText(
false,
false,
'en' ) );