-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PasswordHasher] UserPasswordHasher only calls getSalt when method exists #41755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Q | A |
---|---|
Branch? | 5.3 |
Bug fix? | yes |
New feature? | no |
Deprecations? | no |
Tickets | Fix #41753 |
License | MIT |
src/Symfony/Component/PasswordHasher/Tests/Hasher/UserPasswordHasherTest.php
Show resolved
Hide resolved
Thanks for the perfect report and the patch, Denis. |
If a user class already implements |
Very good question. But, the current code (before this patch) assumes that if your user class is not implementing This patch basically removes that assumption. And actually, because We could consider this a too edge case for supporting it. |
Sure thing, but probably not today. |
@chalasr as far as I can tell, the other places do not (yet) need this change, because all occurrences I could find where getting the user via |
Thanks for confirming. |
src/Symfony/Component/PasswordHasher/Tests/Fixtures/TestLegacyPasswordAuthenticatedUser.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Hasher/UserPasswordHasher.php
Outdated
Show resolved
Hide resolved
Good catch, thanks Denis. |