-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] Fix RememberMe with null password #35335
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
Does this cause any issue? We're not using string mode, so it shouldn't, isn't it? Beside this, IF there is an issue, the same code exists on 3.4 :) |
Yes it triggers:
It's not an issue before 5.0 because method |
Oh, ok. Then we need to change the docblock on 3.4+, and make this nullable on 5.0. That's the most sensible option to me, from an historical perspective, don't you think? |
c713200
to
a7d0d82
Compare
This PR was merged into the 3.4 branch. Discussion ---------- [Security] Fix RememberMe with null password | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | yes | Tickets | NA | License | MIT | Doc PR | NA From `UserInterface` the method getPassword may return null, while generateCookieHash requires a string. This PR changes the signature of the methods to allows null password Similar to #35335 for branch 3.4 Commits ------- 820eb35 Fix RememberMe with null password
Thank you @jderusse. |
This PR was merged into the 5.0 branch. Discussion ---------- [Security] Fix RememberMe with null password | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | yes | New feature? | no | Deprecations? | yes | Tickets | NA | License | MIT | Doc PR | NA From `UserInterface` the method getPassword may return null, while generateCookieHash requires a string. This PR changes the signature of the methods to allows null password Commits ------- a7d0d82 Fix RememberMe with null password
From
UserInterface
the method getPassword may return null, while generateCookieHash requires a string.This PR changes the signature of the methods to allows null password