-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Login with wishlist raise report after logout. #16386
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
Login with wishlist raise report after logout. #16386
Conversation
- fix error message after login with wishlist; - fix possibility to logout after login with wishlist;
Hi @swnsma. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @swnsma ,
can you please check my review?
@@ -45,7 +45,7 @@ public function aroundExecute(FlushFormKey $subject, callable $proceed, ...$args | |||
$currentFormKey = $this->dataFormKey->getFormKey(); | |||
$proceed(...$args); | |||
$beforeParams = $this->session->getBeforeRequestParams(); | |||
if ($beforeParams['form_key'] == $currentFormKey) { | |||
if (isset($beforeParams['form_key']) && $beforeParams['form_key'] == $currentFormKey) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please switch it to strict comparison?
$beforeParams['form_key'] === $currentFormKey
@phoenix128 , strict comparison was added |
Hi @phoenix128, thank you for the review. |
Hi @swnsma. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
Fix login issue through wishlist url which raise error right after login and report after logout.
Fixed Issues (if relevant)
Manual testing scenarios
Pre-conditions
Steps to reproduce
Actual results
Expected results
Contribution checklist