ExamTime icon indicating copy to clipboard operation
ExamTime copied to clipboard

added forget password feature

Open Subhash23jan opened this issue 1 year ago • 3 comments

Description

I have added a "Forgot Password" feature where the user will receive an OTP via email. The email and OTP will be stored temporarily in the ResetPassword schema, which will expire after 5 minutes. The user will then call the "Verify-OTP" API endpoint. Upon successful verification, the user can call the "Update -Password" API endpoint, which updates the password in the User schema.


Resolves: [#207 ]

Checklist

Before submitting this pull request, kindly verify that the ensuing checkpoints have been reached.

  • Have you adhered to the repository's defined coding convention rules? yes
  • [ .] Have you updated the 'documentation.md' file with the method/function documentation? yes
  • [. ] Have you sent a message along with the result or response? yes
  • [ .] Have you used the try-catch technique? yes
  • [. Screenshot 2024-05-22 115810 Screenshot 2024-05-22 115058 Screenshot 2024-05-22 114941 - Copy ] Has the method/class been added to the documentation (md file)? yes

Screenshots

Uploading a screenshot illustrating the approach you developed for validation is required.

Additional Notes/Comments

Any additional remarks or suggestions concerning this pull request are welcome.


I certify that I have carried out the relevant checks and provided the requisite screenshot for validation by submitting this pull request. I appreciate your contribution.

Subhash23jan avatar May 22 '24 06:05 Subhash23jan

@Subhash23jan is attempting to deploy a commit to the swapnilsingh99's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 22 '24 06:05 vercel[bot]

@Subhash23jan Is this ot added in the frontend?

hereisSwapnil avatar May 26 '24 02:05 hereisSwapnil

@Subhash23jan Is this ot added in the frontend?

No..this is only backend route

Subhash23jan avatar May 26 '24 03:05 Subhash23jan