-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR fixes the change password modal as follows: - Adds default values to the change password form schema - this is to prevent the form from being empty when the user clicks on the change password button. - Adds min validation to the old password, new password and password confirmation fields to ensure that the user has entered a value. - Adds the appropriate dependencies to the submit handler useCallback hook. - Surfaces the error message returned from the change password API. - Fixes a translation key/value pair.
- Loading branch information
1 parent
841f0d6
commit 35be070
Showing
4 changed files
with
116 additions
and
76 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
31 changes: 16 additions & 15 deletions
31
packages/apps/esm-login-app/src/change-password/change-password.test.tsx
This file contains 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
This file contains 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