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

[Feature] Change password button integration #287

Open
11 tasks
dyzhuu opened this issue Oct 7, 2024 · 0 comments
Open
11 tasks

[Feature] Change password button integration #287

dyzhuu opened this issue Oct 7, 2024 · 0 comments

Comments

@dyzhuu
Copy link
Contributor

dyzhuu commented Oct 7, 2024

User story:

As a user I want to be able to change my password

Description:

Implement the backend and frontend logic for the change password button at /account

image

Acceptance Criteria:

  • Backend: Handler for POST api/auth/change-password
    • Validates that the user exists && user has a password (is not NULL)
    • Takes in currentPassword and newPassword in the body
      • Uses bcrypt.compare to verify that the currentPassword is correct
      • Change password if successful otherwise bad request.
  • Frontend: integrate change password button at /account

Definition of Done:

  • AC met
  • Applicable tests written
  • Applicable documentation is written in GH wiki
  • PR reviewed
  • Merged into main/feature branch

Notes / Links

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

No branches or pull requests

1 participant