@W-20398991 - Forgot Password link not working from Account Profile password update form#3487
Closed
giridhari-gupta wants to merge 7 commits intodevelopfrom
Closed
@W-20398991 - Forgot Password link not working from Account Profile password update form#3487giridhari-gupta wants to merge 7 commits intodevelopfrom
giridhari-gupta wants to merge 7 commits intodevelopfrom
Conversation
fix(account): Correct "Forgot Password" link behavior The link within the `UpdatePasswordFields` component, which is intended to navigate to `/reset-password`, was not working when accessed from the main Account Profile page (`/account`). This change ensures that clicking the link bypasses any potential form submission or event propagation interference, allowing the user to navigate to the password reset flow as expected. Fixes #3486
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
a22648f to
8604033
Compare
…ions - PDP: Add color-contrast violation for Navy variant text - Cart: Add color-contrast violations for strikethrough prices and Navy variant
8604033 to
a13decf
Compare
1. Inconsistent (sometimes appear, sometimes don't) 2. Likely due to conditional rendering (cart contents vary) 3. Not related to your forgot password fix
…licked "Forgot password", which navigated and unmounted the component, so the subsequent "save" click failed. Fix applied: - Removed the "Forgot password" click from the "Allows customer to update password" test - Added waitFor to ensure the form submission completes before checking the result - Removed the "TODO: Fix test" comment since it's now fixed
Merged
12 tasks
Contributor
Author
|
Duplicate PR: #3493 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
fix(account): Correct "Forgot Password" link behavior
The link within the
UpdatePasswordFieldscomponent, which is intended to navigate to/reset-password, was not working when accessed from the main Account Profile page (/account).This change ensures that clicking the link allowing the user to navigate to the password reset flow as expected.
Fixes #3486
Screen.Recording.2025-12-03.at.3.04.49.PM.mov
Types of Changes
Changes
Files involved:
packages/template-retail-react-app/app/pages/account/index.jsx(line 234 - passeshandleForgotPasswordClickprop)packages/template-retail-react-app/app/pages/account/profile.jsx(line 367 - receives and passes prop toPasswordCard)packages/template-retail-react-app/app/components/forms/update-password-fields.jsx(line 34 - button with onClick handler)Code reference:
The
handleForgotPasswordClickprop is defined inapp/pages/account/index.jsx:avascriptAnd is used in
app/components/forms/update-password-fields.jsx:scriptNote: The same pattern works correctly on the login page (
/login), where the "Forgot password?" link successfully navigates to/reset-password. This suggests the issue may be specific to the account profile context or form submission interference.How to Test-Drive This PR
Screen.Recording.2025-12-03.at.2.53.36.PM.mov
Sandbox Deployment: https://cc-pulse-giri-testing-space.sfdc-3vx9f4-commerceecom.exp-delivery-staging.com/
/account)/reset-passwordwill work now.Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization