From 6b89deff202b6b89d671b5da6beb04cd75f179ab Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Sat, 20 Apr 2019 00:19:35 +0100 Subject: [PATCH] User: Remove deprecated ::randomPassword() method Usage: https://codesearch.wmflabs.org/search/?q=(%3A%3A%7C-%3E)randomPassword%5C(&i=nope&files=&repos= Only TwitterLogin (an unmaintained) extension still using it and this patch I2c8d395dd2296a233f4 removes it. Depends-On: I2c8d395dd2296a233f46abd44b89604c579c3020 Change-Id: I549d536e3c3e1da1c0c9c768640351bddf1d3449 --- RELEASE-NOTES-1.34 | 1 + includes/user/User.php | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/RELEASE-NOTES-1.34 b/RELEASE-NOTES-1.34 index 9e8195b588..c85d67850d 100644 --- a/RELEASE-NOTES-1.34 +++ b/RELEASE-NOTES-1.34 @@ -101,6 +101,7 @@ because of Phabricator reports. SearchEngine::create(), SearchEngine::getSearchTypes() and SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed. * FileRepo::streamFile(), deprecated in 1.26, has been removed. +* User::randomPassword() method, deprecated in 1.27, have been removed. === Deprecations in 1.34 === * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo. diff --git a/includes/user/User.php b/includes/user/User.php index 981204d647..33d216d19c 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -1290,17 +1290,6 @@ class User implements IDBAccessObject, UserIdentity { return $name; } - /** - * Return a random password. - * - * @deprecated since 1.27, use PasswordFactory::generateRandomPasswordString() - * @return string New random password - */ - public static function randomPassword() { - global $wgMinimalPasswordLength; - return PasswordFactory::generateRandomPasswordString( $wgMinimalPasswordLength ); - } - /** * Set cached properties to default. * -- 2.20.1