hereisSwapnil / ExamTime

Share/Download notes PDF helps during exams
https://exam-time.vercel.app
MIT License
59 stars 120 forks source link

added forget password feature #225

Closed Subhash23jan closed 1 month ago

Subhash23jan commented 1 month ago

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.

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.

vercel[bot] commented 1 month ago

@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.

hereisSwapnil commented 1 month ago

@Subhash23jan Is this ot added in the frontend?

Subhash23jan commented 1 month ago

@Subhash23jan Is this ot added in the frontend?

No..this is only backend route