-
Hey everyone, I've finally upgraded an old 3.4 instance to 5.4. But I'm still stuck with the new password upgrading system. Currently, my passwords are hashed using password_hashers:
legacy:
algorithm: sha512
iterations: 1103
encode_as_base64: true
App\Entity\User:
algorithm: auto
migrate_from:
- legacy Besides, I made my public function getPasswordHasherName(): ?string
{
if (null !== $this->salt) {
return 'legacy';
}
return null;
} You can already see that my old hasher used a separate salt column, and the contents of that column determine whether this is a legacy or a 'new' hashed password. I've also implemented the I've debugged a bit using What is going wrong here? Am I misconfiguring the hashers? Or can the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Exactly! May I ask why you thought otherwise? The documentation about password migration does not mention |
Beta Was this translation helpful? Give feedback.
Exactly!
May I ask why you thought otherwise? The documentation about password migration does not mention
PasswordHasherAwareInterface
yet you're not the only one trying to implement it.