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

Update otpController.js #495

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

AKSHITHA-CHILUKA
Copy link
Contributor

@AKSHITHA-CHILUKA AKSHITHA-CHILUKA commented Aug 6, 2024

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #489

Type of change

Please mark with an X the type that applies:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor code
  • Documentation update
  • Other (mentioned in the issue number)

How Has This Been Tested?

Verify that OTPs are generated correctly, stored in the database with an expiration time, and automatically removed after the expiration period.

Test A: Describe here
heck the response to ensure that an OTP is returned and the success message is displayed.
Verify that the OTP is stored in the database with the correct email, otp, and createdAt fields.
Wait for the expiration period (5 minutes).

Test B: Describe here (if required)

Screenshots and Videos

Please provide screenshots and videos of the changes you made.

Checklist

Please mark with an X the items that apply:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

vercel bot commented Aug 6, 2024

@AKSHITHA-CHILUKA is attempting to deploy a commit to the vansh69's projects Team on Vercel.

A member of the Team first needs to authorize it.

@hustlerZzZ hustlerZzZ added gssoc This label is attached to the issues related to Gssoc'24 level1 labels Aug 7, 2024
@hustlerZzZ hustlerZzZ merged commit f385a21 into VanshKing30:main Aug 7, 2024
1 of 2 checks passed
Copy link

github-actions bot commented Aug 7, 2024

Congratulations, Your pull request has been successfully merged 🥳🎉 Thank you for your contribution to the project 🚀 Keep Contributing!! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc This label is attached to the issues related to Gssoc'24 level1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: OTP Expiration
2 participants