Open Axel29 opened 3 years ago
Hi @krishprakash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
I confirm this issue is still valid in 2.3.5p2 and reverting it to the old method works fine.
Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @Axel29 thank you for your report. Is issue reproducible with "Account Sharing Options=Global" ? Could you clarify point 5 from Steps to Reproduce section?
Hi @engcom-Delta yes that is exactly what I meant in step 5, enable sharing accounts globally.
@Axel29 \Magento\Customer\Model\EmailNotification::passwordResetConfirmation
by PR https://github.com/magento/magento2/pull/24783 to fix issue https://github.com/magento/magento2/issues/23295
Current behavior should be discussed as improvement in scope of Feature Request to save changes from https://github.com/magento/magento2/pull/24783 related to api
Manual testing scenario:
Case 1:
Current behavior:
Set a New Password
link from email leads to default websiteCase 2:
Current behavior:
Set a New Password
link from email leads to additional websiteThis issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
The issue is still relevant.
The problem with our installation is a double edged blade case. Both approaches seems correct. We had 1 website with 2 store views
Example if the customer was opened in english store ( id: 2) magento tries to attach store id 2 url for the customer to reset the password.
The problem was that english store was disabled, so the customer got redirected to homepage. Proposed solution to this is to add a check if the customers store code is disabled send the email from the store id that it was requested. On this case store id 1.
The old code makes a lot more sense though because if the customer navigates to a store view that he understands the language then its ok to send him email with links with the store url that they were requested.
hi @Axel29, based on your code, looks like one line of code has been changed
$storeId = $this->storeManager->getStore()->getId();
to
$storeId = $customer->getStoreId();
Have you tried to revert this change and create a PR with Magento?
I have the same issue for user created from admin. They have store_id = 0, website_id = 7. So the store_id does not fit.
The behavior of having store_id = 0 when created from admin is actually a M1 bug, so the issue is on data migration tool. A simple fix for that is to update store_id in customer table.
Hope it helps.
We are experiencing this without migrated data and also without "Account Sharing Options=Global" enabled.
However we are creating customers with the API so this is probably why they don't have the same created in and associated with.
@magento I am working on this.
Hi @MaksSum41! :wave:
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team
command to join Contributors team.
@magento add to contributors team
Hi @MaksSum41! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and add your comment one more time.
@magento I am working on this.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Explanation
The bug seems to have appeared in Magento 2.3.4 after changing the method
\Magento\Customer\Model\EmailNotification::passwordResetConfirmation
.Before Magento 2.3.4, the code did this:
but was changed to this:
The problem si that the customer's store ID is retrieved instead of the current store ID.
I think the issue was introduced in this GitHub issue: https://github.com/magento/magento2/issues/5726 which clearly didn't take into account the multi-website / multi-domain and frontend email.