sef-global / scholarx-backend

This is the backend of the ScholarX
MIT License
10 stars 37 forks source link

Implement password reset endpoints #58

Closed anjula-sack closed 2 months ago

anjula-sack commented 1 year ago

Description: In order to enhance the security and user-friendliness of our authentication system, we are introducing a crucial feature: the Password Reset functionality.

Tasks:

  1. Create the following routes here src/routes/auth/auth.route.ts

/password-reset-request /password-reset

  1. Create the services here src/services/auth.service.ts
  2. Create the controllers here src/services/auth.controller.ts
  3. /password-reset-request will check the user email and generate a reset token. for now, return the token. In the future password reset link will be emailed to the user. The reset token should include the user id and an expiration time of 1h.
  4. /password-reset will verify the token (check the user id and the expiration time) and update the new password

Related Dependencies or References:

dilankavishka commented 11 months ago

Can i go with this issue please?

anjula-sack commented 11 months ago

Can i go with this issue please?

Sure

anjula-sack commented 11 months ago

@dilankavishka I will update the description to give you a better idea on what needs to be done.

dilankavishka commented 11 months ago

@anjula-sack Thank you so much

anjula-sack commented 11 months ago

@anjula-sack Thank you so much

@dilankavishka The description is updated

dilankavishka commented 11 months ago

Noted!

anjula-sack commented 10 months ago

Any updates @dilankavishka?

dilankavishka commented 10 months ago

@anjula-sack i'll finish this as soon as possible.

anjula-sack commented 10 months ago

Any updates @dilankavishka?

dilankavishka commented 9 months ago

almost done with this issue @anjula-sack

anjula-sack commented 9 months ago

When can we get this @dilankavishka?

vish2396 commented 7 months ago

Can I go with this issue?

anjula-sack commented 7 months ago

Can I go with this issue?

Go ahead @vish2396

mayura-andrew commented 6 months ago

@vish2396 hello, any updates on this task ?