Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit User Settings - Story 3 - Implement the UI section for change password #8

Open
haxwell opened this issue Mar 26, 2020 · 0 comments

Comments

@haxwell
Copy link
Contributor

haxwell commented Mar 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant