Skip to content

Change Password Page and API link#216

Merged
taoTimTim merged 3 commits intomainfrom
User-Change-Password
Mar 28, 2025
Merged

Change Password Page and API link#216
taoTimTim merged 3 commits intomainfrom
User-Change-Password

Conversation

@JamesBirni
Copy link
Copy Markdown
Collaborator

@JamesBirni JamesBirni commented Mar 28, 2025

Explanation

Within profile there is now a button to change the users password. It requires the old password, the new password, and a confirmation for the new password.

Error Handling

  • If passwords don't match -> alert(PASSWORDS DON'T MATCH)
  • if other error -> alert(FAILED TO CHANGE PASSWORD)

Once the password is changed, the user gets redirected to login

Resolves #217

@JamesBirni JamesBirni self-assigned this Mar 28, 2025
@JamesBirni JamesBirni changed the title changed service to throw when error added change password Change Password Page and API link Mar 28, 2025
Copy link
Copy Markdown
Collaborator

@taoTimTim taoTimTim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax is correct. Running in frontend works properly, I can change the password from an admin's account and fromm a team members account.

The popups of "Failed to change password" and "Passwords don't match" are working great and correctly, having tested for both while running.

Great work, ready to merge.

@taoTimTim taoTimTim merged commit 7f77b63 into main Mar 28, 2025
1 check passed
@taoTimTim taoTimTim deleted the User-Change-Password branch March 28, 2025 07:50
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

Successfully merging this pull request may close these issues.

Create Change password page and link api

2 participants