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

HC-001 [Backend]: Implement Reset Password Flow #3

Open
araf821 opened this issue Sep 10, 2024 · 0 comments
Open

HC-001 [Backend]: Implement Reset Password Flow #3

araf821 opened this issue Sep 10, 2024 · 0 comments
Assignees

Comments

@araf821
Copy link
Collaborator

araf821 commented Sep 10, 2024

Description

User should be able to reset their password if forgotten. The entire process of resetting a user password would include going them clicking on "Forgot Password," entering their email in the forgot-password page, receiving an email with a password reset link, and then resetting their password in the reset-password page.

During this task, we will be implementing the entire process minus any email integration as that can be done in a future issue. For now, any time we need to send an email, we can log the email contents in the console and allow us developers to use the password-reset link or anything else we need from the email.

Task Outline

  • Initialize simple forgot-password and reset-password pages, no need for any styles
  • Create simplified form components for each feature
  • Implement API routes for each feature
  • Refer to the login and register routes to ensure consistent data is being sent to the frontend during all scenarios
  • Send any necessary error messages to the client, do not worry about displaying/styling the end-user experience
  • Create Zod schemas for both forms, forgot-password and reset-password
  • Ensure that the new password is being hashed and stored properly in the database
  • Have fun
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

2 participants