Merge pull request 'fix verify password methode ssha' (#11) from themeConfig into develop
Cadoles/hydra-sql/pipeline/head This commit is unstable
Details
Cadoles/hydra-sql/pipeline/head This commit is unstable
Details
Reviewed-on: #11
This commit is contained in:
commit
8d52721172
|
@ -47,8 +47,8 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
|
|||
$completedPassword = $this->getPasswordToHash($plainPassword, $salt);
|
||||
|
||||
foreach ($this->hashAlgoLegacy as $algo) {
|
||||
if ('ssha' === $algo) {
|
||||
return $this->compareSsha($hashedPassword, $completedPassword);
|
||||
if ('ssha' === $algo && $this->compareSsha($hashedPassword, $completedPassword)) {
|
||||
return true;
|
||||
}
|
||||
if ($this->isObsoleteAlgo($algo)) {
|
||||
if (hash_equals(hash($algo, $completedPassword), $hashedPassword)) {
|
||||
|
|
Loading…
Reference in New Issue