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] Implement "Forgot Feature" to the backend. #19 #29

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Dev-Rishav
Copy link

what I have done:

  • Implemented endpoints for handling forgot password and password reset requests.
  • Created a secure token and saved it to the user's document in MongoDB.
  • Send an email using nodemailer to the user with a link containing the token.
  • Verify the token when the user submits the new password from the password reset route.
  • Update the password in the MongoDB database

Fixes Issue#19

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You've made your first pull request - awesome! Let's collaborate to make this project even better

If you're fixing a bug, please refer to the issue number in the description.

If you are implementing a feature request, please check with the maintainers that the feature will be accepted first.

Copy link
Member

@Mustafiz04 Mustafiz04 left a comment

Choose a reason for hiding this comment

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

Same for all the changes. Just focus on your feature please.

Comment on lines +1 to +3
const Express = require("express");
const AuthRouter = Express.Router();
const {logout, signin, signup, verifyEmail, forgotPassword,resetPassword }=require("../controller/auth");
Copy link
Member

Choose a reason for hiding this comment

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

please don't change anything from export-import to require as I am using Babel to handle this.

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.

[FEATURE] Implement "Forgot Feature" to the backend.
2 participants