Add Change Password feature with form and routing#218
Merged
Conversation
Collaborator
Author
|
This pull request introduces a new user password reset flow and improves the user experience for changing passwords. The main changes include adding a dedicated password change page and updating navigation and UI accordingly. Password Reset Flow Improvements:
UI and Navigation Updates:
|
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.
This pull request implements a new "Change Password" feature for users, allowing them to request a password reset link directly from their profile. The changes include adding a dedicated password change form, updating navigation flows, and ensuring consistent styling and user experience for the password reset process.
New Password Reset Feature:
ChangePasswordFormcomponent that provides a UI for users to request a password reset link. The form is pre-filled and disabled if the user's email is already known, and provides real-time feedback on submission status. The form uses Auth0's password reset endpoint and displays success and error messages as appropriate. (client/src/components/pages/ChangePassword/ChangePasswordForm.jsx, client/src/components/pages/ChangePassword/ChangePasswordForm.jsxR1-R279)/changePasswordin the private routes, protected for authenticated users, which renders the new password reset form. (client/src/routes/PrivateRoutes.jsx, [1] [2]ChangePasswordcomponent for future use. (client/src/components/pages/ChangePassword/index.js, client/src/components/pages/ChangePassword/index.jsR1)Navigation and User Experience Improvements:
/changePasswordroute instead of logging out and redirecting to a generic password reset page. This provides a smoother and more secure user experience. (client/src/components/organisms/UserPortal/Userprofile/Userprofile.jsx, client/src/components/organisms/UserPortal/Userprofile/Userprofile.jsxL734-R741)Styling and UI Enhancements:
client/src/components/pages/ChangePassword/ChangePassword.module.css, client/src/components/pages/ChangePassword/ChangePassword.module.cssR1-R196)Additional Notes:
ChangePassword.jsx(with illustration and CSS module styling) andChangePasswordForm.jsx(with inline styles and theme support). The route usesChangePasswordForm.jsxas the main implementation.These changes together introduce a modern, user-friendly way for users to initiate a password reset from within their account portal.