X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fuser%2FPasswordReset.php;h=73e5cbc29f0660cc9ad786887d5542482381b1f4;hb=42e0b355e2a382f7a96764cb9d04e4d1490377a4;hp=b5f7f6a51300bf0749c650e7455292b383396a2f;hpb=9dfda465706d70a1ddd9beeec62c96b4d06c36b3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/PasswordReset.php b/includes/user/PasswordReset.php index b5f7f6a513..73e5cbc29f 100644 --- a/includes/user/PasswordReset.php +++ b/includes/user/PasswordReset.php @@ -226,7 +226,6 @@ class PasswordReset implements LoggerAwareInterface { 'requestingUser' => $performingUser->getName(), 'targetUsername' => $username, 'targetEmail' => $email, - 'actualUser' => $firstUser->getName(), ]; if ( !$result->isGood() ) { @@ -237,13 +236,9 @@ class PasswordReset implements LoggerAwareInterface { return $result; } - foreach ( $reqs as $req ) { - $this->authManager->changeAuthenticationData( $req ); - } - - $this->logger->info( - "{requestingUser} did password reset of {actualUser}", - $logContext + DeferredUpdates::addUpdate( + new SendPasswordResetEmailUpdate( $this->authManager, $reqs, $logContext ), + DeferredUpdates::POSTSEND ); return StatusValue::newGood();