-
Notifications
You must be signed in to change notification settings - Fork 83
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
Added Resend Email Verification and Delete Unverified Users after 24 Hours #436
Added Resend Email Verification and Delete Unverified Users after 24 Hours #436
Conversation
✅ Deploy Preview for delightful-daifuku-a9f6ea ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@AlfiyaSiddique please merge #435 before this to prevent any merge conflicts and this adds feature on that branch. note: I have used timer of 10 sec in video to show resend email verification functionality, but its 2 min in real to prevent email spam. |
@IkkiOcean please resolve conflicts |
@AlfiyaSiddique |
@IkkiOcean I have merged 435 before this still it has conflicts, |
@AlfiyaSiddique yes. I was actively removing them. it done now. you can merge |
🎉 Thank you @IkkiOcean Your pull request has been successfully merged! 🎉 Thank you for your contribution to our project. Your efforts are greatly appreciated. Keep up the fantastic work! 🚀 |
This PR introduces two major features:
Key Changes:
Backend Changes:
User Schema Update:
timestamps
has been added to the user schema to track the timestamp of when the account was added.New Routes:
UserController Updates:
UserController
to handle the resending of verification emails, ensuring that the email is only resent after a 24-hour period has passed.Frontend Changes:
Resend Email Verification Page:
Resend Button:
Summary of Changes:
Backend:
Frontend:
This PR aims to improve user experience by allowing users to request the resend of verification emails, and also ensures that unverified users are automatically cleaned up after 24 hours, enhancing overall system efficiency. Let me know if further changes or improvements are needed.
How should this be tested?
Checklist
Required
console.logs
VIDEO and Screenshot
rev.mp4