User: Remove deprecated ::randomPassword() method
authorDerick Alangi <alangiderick@gmail.com>
Fri, 19 Apr 2019 23:19:35 +0000 (00:19 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Sat, 20 Apr 2019 12:46:43 +0000 (13:46 +0100)
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
includes/user/User.php

index 9e8195b..c85d678 100644 (file)
@@ -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.
index 981204d..33d216d 100644 (file)
@@ -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.
         *