diff --git a/src/Password/PhpPassword.php b/src/Password/PhpPassword.php index bad28379dae921865203706c15a7148766a9ff34..d3b5351019e29c5eb0af628c0e8fa938b6c6ec0a 100644 --- a/src/Password/PhpPassword.php +++ b/src/Password/PhpPassword.php @@ -81,7 +81,7 @@ public function needsRehash($hash) { // - The parameters of hashing engine were changed. For example the // parameter 'password_hash_cost' (the hashing cost) has been increased in // core.services.yml. - return password_needs_rehash($hash, PASSWORD_DEFAULT, $this->getOptions()); + return password_needs_rehash($hash, $this->algorithm, $this->getOptions()); } /**