magento2
magento2 copied to clipboard
Fix reset password email sent from wrong store
Description (*)
When resetting the password, the email was sent not from the store in which the user resets it, but from the one in which the user was registered.
Related Pull Requests
Fixed Issues (if relevant)
- Fixes magento/magento2#30794
Manual testing scenarios (*)
- Login to Magento Backend
- Go to Stores > All Stores and create a new website and a new store associated to that website
- Go to Stores > Configuration > General > Web and use a different domain for the new website
- Go to Stores > Configuration > General > General > Locale Options and set the new store's language to a different one from the default store
- Go to Stores > Configuration > Customers > Customer Configuration > Account Sharing Options and enable account sharing
- Go to Magento Store Frontend in the first (default) store
- Create a customer account
- Go to the second store
- Go to the forgot password page and send the form using the email used in step 6 (create a customer account)
Questions or comments
Contribution checklist (*)
- [ ] Pull request has a meaningful description of its purpose
- [ ] All commits are accompanied by meaningful commit messages
- [ ] All new or changed code is covered with unit/integration tests (if applicable)
- [ ] README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
- [ ] All automated tests passed successfully (all builds are green)