Skip to content

feat(auth): add forgot password functionality#1391

Open
RISHIKARIR wants to merge 6 commits into
aryandas2911:mainfrom
RISHIKARIR:forgot-password-flow
Open

feat(auth): add forgot password functionality#1391
RISHIKARIR wants to merge 6 commits into
aryandas2911:mainfrom
RISHIKARIR:forgot-password-flow

Conversation

@RISHIKARIR
Copy link
Copy Markdown

📌 Description

I have implemented the Forgot password functionality on the site,I have created forgot password component in the frontend and create multiple routes and their controllers in the auth and i've used nodemailer for forgotting the password.When the user will click on the forgot password then he is required to enter his registered email and after that he will get the otp on the registered email which he entered and when he/she will enter the otp then he will be able to change the password.

🔗 Related Issue

Closes #<811>

🛠 Changes Made

  • Added Forgot Password page in the frontend
  • Added OTP verification flow
  • Added password reset functionality
  • Added authentication routes and controllers for password recovery
  • Integrated Nodemailer for sending OTP emails
  • Updated login page with Forgot Password navigation

📸 Screenshots (if applicable)

image image

✅ Checklist

  • [ ✓ ] Code runs locally
  • [ ✓ ] Followed project structure
  • [ ✓ ] No console errors
  • [ ✓ ] Properly tested changes
  • [ ]✓ Linked the issue

🚀 Notes for Reviewers

  • The forgot password flow uses Nodemailer for OTP delivery.
  • To test this feature locally, contributors must configure the following environment variables in their .env file:
  • EMAIL_USER
  • EMAIL_PASSWORD
  • For Gmail, contributors need to:
  1. Enable 2-Step Verification on their Google account.
  2. Generate an App Password from Google Account settings.
  3. Use their Gmail address as EMAIL_USER.
  4. Use the generated App Password as EMAIL_PASSWORD.
  • OTP emails will not be sent unless valid email credentials are configured.

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.

1 participant