Edit User Settings - Story 3 - Implement the UI section for change password
Opened this issue · 0 comments
The changes should go on the edit-user-info page. When its all said and done, there will be three sections on this page. This is the third section on the page.
It should be in an [ion-card]. A text field for current password, new password, and a third for confirm new password.
There should be a save button, disabled by default. It should be enabled only under the following conditions [1] the current password is filled in (but not necessarily correct), [2] the new password field is filled in, [3] the confirm password field is filled in, and its value matches the new password field's value.
When the user hits the save button, it should first call the backend to verify the password is correct. if not, report a message in an alert dialog. If it is correct, then call the /api/user/{userId}
api with the user's new password. Once it returns successfully, show an alert dialog. When the dialog is closed, clear all three fields, and disable the save button.