Compare commits

..

No commits in common. "8d52721172fd4241eeda3c610cfd282ca820ff32" and "05a3ddd7cd2c116589461e51e87713b6927f732a" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
$completedPassword = $this->getPasswordToHash($plainPassword, $salt);
foreach ($this->hashAlgoLegacy as $algo) {
if ('ssha' === $algo && $this->compareSsha($hashedPassword, $completedPassword)) {
return true;
if ('ssha' === $algo) {
return $this->compareSsha($hashedPassword, $completedPassword);
}
if ($this->isObsoleteAlgo($algo)) {
if (hash_equals(hash($algo, $completedPassword), $hashedPassword)) {