added forget password feature
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
- [.
] 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 is attempting to deploy a commit to the swapnilsingh99's projects Team on Vercel.
A member of the Team first needs to authorize it.
@Subhash23jan Is this ot added in the frontend?
@Subhash23jan Is this ot added in the frontend?
No..this is only backend route