From: Sam Wilson Date: Mon, 13 Apr 2020 02:32:17 +0000 (+0800) Subject: Clean up unused $displayPassword return value X-Git-Tag: 1.34.2~19 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%40%20%27info_date_publication_anterieure%27%20=%3E%20%27Previously%20published%20on:%27%2C%20%27info_date_referencement%27%20=%3E%20%27THIS%20SITE%20REFERENCED%20ON:%27%2C%20%27info_derniere_etape%27%20=%3E%20%27Done%21%27%2C-%27info_derniers_articles_publies%27%20=%3E%20%27Your%20most%20recently%20published%20articles%27%2C-%27info_desactiver_messagerie_personnelle%27%20=%3E%20%27You%20can%20enable%20or%20disable%20your%20personal%20messaging%20on%20this%20site.%27%2C%20%27info_descriptif%27%20=%3E%20%27Description:%27%2C%20%27info_desinstaller_plugin%27%20=%3E%20%27%20deactivates%20the%20plugin%20and%20deletes%20the%20data%27%2C%20%27info_discussion_cours%27%20=%3E%20%27Current%20discussions%27%2C%40%40%20-332%2C7%20%20284%2C6%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?a=commitdiff_plain;h=abb5cd734581ee57ef75d4c51a35ce3260bc073c;p=lhc%2Fweb%2Fwiklou.git Clean up unused $displayPassword return value This is a follow-up to f12a3edff708a1fb73a09d154693dba49b69d921 to remove the now unused $password return variable. Change-Id: I2b12bd7c9f84e915f1bda659a95bab3d63a611d2 --- diff --git a/includes/user/PasswordReset.php b/includes/user/PasswordReset.php index 2958b1f2d0..25543a6caa 100644 --- a/includes/user/PasswordReset.php +++ b/includes/user/PasswordReset.php @@ -154,8 +154,7 @@ class PasswordReset implements LoggerAwareInterface { * @param User $performingUser The user that does the password reset * @param string|null $username The user whose password is reset * @param string|null $email Alternative way to specify the user - * @return StatusValue Will contain the passwords as a username => password array if the - * $displayPassword flag was set + * @return StatusValue * @throws LogicException When the user is not allowed to perform the action * @throws MWException On unexpected DB errors */ @@ -289,7 +288,6 @@ class PasswordReset implements LoggerAwareInterface { return $result; } - $passwords = []; foreach ( $reqs as $req ) { // This is adding a new temporary password, not intentionally changing anything // (even though it might technically invalidate an old temporary password). @@ -301,7 +299,7 @@ class PasswordReset implements LoggerAwareInterface { $logContext ); - return StatusValue::newGood( $passwords ); + return StatusValue::newGood(); } /**