X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fuser%2FBotPassword.php;h=25625e72c8c97712d438fec931741612c7af8851;hp=57610fc9e40251f2a290eff89947a58a12ca9f46;hb=fb79f30319b9ad2a7eb0f5f4d1668143ec8f963e;hpb=5b66e4504dd543faa3a85d4a0a88daca991c223d diff --git a/includes/user/BotPassword.php b/includes/user/BotPassword.php index 57610fc9e4..25625e72c8 100644 --- a/includes/user/BotPassword.php +++ b/includes/user/BotPassword.php @@ -19,6 +19,7 @@ */ use MediaWiki\Session\BotPasswordSessionProvider; +use Wikimedia\Rdbms\IMaintainableDatabase; /** * Utility class for bot passwords @@ -68,7 +69,7 @@ class BotPassword implements IDBAccessObject { /** * Get a database connection for the bot passwords database * @param int $db Index of the connection to get, e.g. DB_MASTER or DB_REPLICA. - * @return Database + * @return IMaintainableDatabase */ public static function getDB( $db ) { global $wgBotPasswordsCluster, $wgBotPasswordsDatabase; @@ -410,7 +411,7 @@ class BotPassword implements IDBAccessObject { * @return array|false */ public static function canonicalizeLoginData( $username, $password ) { - $sep = BotPassword::getSeparator(); + $sep = self::getSeparator(); // the strlen check helps minimize the password information obtainable from timing if ( strlen( $password ) >= 32 && strpos( $username, $sep ) !== false ) { // the separator is not valid in new usernames but might appear in legacy ones