Open
Conversation
Added (static) password reset process pages: - implemented "Forgot Password" and "Reset Password" forms - created Success Reset page to confirm successful password reset - added appropriate user guidance messages throughout the reset process - added related unit tests for the new pages and components Resolves CP-28
8b69328 to
95ed783
Compare
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.
Added (static) password reset process pages
Description
Work Flow
For testing purposes, please switch the backend to the branch ‘feat/CP28-reset-user-password’ in platform_api repo.
When the user clicks the "Forgot password" text on the login page, they are directed to the Reset Password Initiation Page, which will prompt them to enter their registered email address.

After submission, the system will display the message "If the email is associated with an account, a reset email will be sent shortly. Please check your mailbox," guiding the user to check their email for the reset link. If an error occurs during the request, the message "An error occurred while processing your request. Please try again later." will be shown.

Clicking the link in the email will navigate the user to the Reset Password Page, where they can enter a new password.
For testing purposes, please use the GraphQL playground at http://localhost:3000/graphql with the following query to get 'resetPasswordToken':
query GetUsers { getUsers { id email resetPasswordToken } }And then manually visit http://localhost:5173/reset-password?token={resetPasswordToken}.

After submitting the new password, if there are errors or other issues, the message will be displayed to inform the user.

If the reset is successful, the user will be navigated to the reset success page. On this page, the user can directly click the "Back to Login" button to log in on the Login Page.

During the process, users can always click the "Login" text at the bottom to return to the login page.

UI
Unit test
Resolves CP-28