X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpassword%2FBcryptPassword.php;h=f811e3f51454368acf222d6cbdd7cd52b558f884;hb=d4f3e554d789d1c100d0e2eac97372fb83ef5e47;hp=4e5e878b5e6d5e5af6b0bc31978667a00a72173a;hpb=d3c63680003e3b85cb7ad4fd85bd1eb981faf835;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/password/BcryptPassword.php b/includes/password/BcryptPassword.php index 4e5e878b5e..f811e3f514 100644 --- a/includes/password/BcryptPassword.php +++ b/includes/password/BcryptPassword.php @@ -24,15 +24,15 @@ * A Bcrypt-hashed password * * This is a computationally complex password hash for use in modern applications. - * The number of rounds can be configured by $wgPasswordCost. + * The number of rounds can be configured by $wgPasswordConfig['bcrypt']['cost']. * * @since 1.24 */ class BcryptPassword extends ParameterizedPassword { protected function getDefaultParams() { - return array( + return [ 'rounds' => $this->config['cost'], - ); + ]; } protected function getDelimiter() {