Compare commits
2 Commits
05a3ddd7cd
...
8d52721172
Author | SHA1 | Date |
---|---|---|
Rudy Masson | 8d52721172 | |
Rudy Masson | 39829ca6a1 |
|
@ -47,8 +47,8 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
|
||||||
$completedPassword = $this->getPasswordToHash($plainPassword, $salt);
|
$completedPassword = $this->getPasswordToHash($plainPassword, $salt);
|
||||||
|
|
||||||
foreach ($this->hashAlgoLegacy as $algo) {
|
foreach ($this->hashAlgoLegacy as $algo) {
|
||||||
if ('ssha' === $algo) {
|
if ('ssha' === $algo && $this->compareSsha($hashedPassword, $completedPassword)) {
|
||||||
return $this->compareSsha($hashedPassword, $completedPassword);
|
return true;
|
||||||
}
|
}
|
||||||
if ($this->isObsoleteAlgo($algo)) {
|
if ($this->isObsoleteAlgo($algo)) {
|
||||||
if (hash_equals(hash($algo, $completedPassword), $hashedPassword)) {
|
if (hash_equals(hash($algo, $completedPassword), $hashedPassword)) {
|
||||||
|
|
Loading…
Reference in New Issue