ACSD-48570: Fixing admin reset password link issue with store code in URL
- Topics:
- Security
- User Account
CREATED FOR:
- Experienced
- Admin
- Developer
The ACSD-48570 patch to fix the Adobe Commerce issue where the reset password page could not be accessed via the Admin reset password link when the Add Store Code to URLs configuration was enabled. This patch is available when the Quality Patches Tool (QPT) 1.1.58 is installed. The patch ID is ACSD-48570. Please note that the issue was fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.5
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.6-p8
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
When the Add Store Code to URLs setting is enabled, the Admin reset password functionality does not work correctly.
After an admin user requests a password reset and clicks on the recovery link in the email, they are redirected to the login page or receive a 404 error instead of being taken to the reset password form. This prevents administrators from recovering their accounts without manual intervention.
Steps to reproduce:
- Enable the Add Store Code to URLs configuration at Store > Configuration > General > Web > URL Options.
- Log out from the Admin panel and click the Forgot your password? link on the Admin login page.
- Enter the Admin user’s email, pass the captcha, and click Retrieve Password.
- Open the password reset email and click on the password recovery link.
Expected results:
The reset password form should be displayed.
Actual results:
The login page or a 404 error page is displayed instead of the reset password form.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.