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

Add User Password Reset Functionality #10

Open
Laxmi2707 opened this issue Jan 25, 2025 · 0 comments
Open

Add User Password Reset Functionality #10

Laxmi2707 opened this issue Jan 25, 2025 · 0 comments
Labels
enhancement New feature or request IWOC2025 Medium

Comments

@Laxmi2707
Copy link
Member

Description

Allow users to reset their password if they forget it by sending a password reset link to their email.

Steps to Implement

  1. Implement a POST /auth/forgot-password endpoint that sends a reset token to the user's email.
  2. Implement a PUT /auth/reset-password/:token endpoint to update the user's password.
  3. Use bcryptjs to hash the new password before saving it to the database.

Expected Outcome

Users can reset their passwords securely.

@Durgesh4993 Durgesh4993 added enhancement New feature or request Medium IWOC2025 labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request IWOC2025 Medium
Projects
None yet
Development

No branches or pull requests

2 participants