Migration from 5.4 to 7.4 Password hasher Sha512 #63644
Unanswered
michaelgastal
asked this question in
Q&A
Replies: 1 comment · 1 reply
-
|
Hello, does your User class implement |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello` everyone,
I migrated an application from Symfony 5.4 to Symfony 7.4. When I try to log in, the isPasswordValid function rejects the connection. I think it's the UserPasswordHasherInterface system that has changed, but I can't reproduce it.
Version 5.4:
security.yaml:
Method for saving the password:
Login method:
Version 7.4:
security.yaml:
Method for saving the password:
Login method:
An example of a user with whom I can connect in the old version but not in the new one:
plain password : }c6/U5!Eu*5De4NkLu8#
password (hash) : a9k+NwzMv4hwZ/uDDdoZ1JM2eLThA52eiy3fLosocl03r1eu+/yObawLBkc/3HFbrtDC5/QZJcSby9JvbZJCYA==
salt: ewO0G33GtrKc2Xk3FcIbSoZwVV4jPBVdiqXHUNG5
An example of a user with whom I can connect in the new version but not in the old one:
plain password : }c6/U5!Eu*5De4NkLu8#
password (hash) : BOoFutmaJ+rj1CDUHOhU3iBShHziXONPOKUCEaD1NFg2xmtdrJbVw1t0eOOMyvz/0QTM0ysxiHyqSI62Gp7dzA==
salt: ewO0G33GtrKc2Xk3FcIbSoZwVV4jPBVdiqXHUNG5
As we can see, the hashed password is not the same between the two versions, for the same plain password.
Beta Was this translation helpful? Give feedback.
All reactions