-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add OTP feature #81
base: main
Are you sure you want to change the base?
Add OTP feature #81
Conversation
add two new fields otpToken and otpExpiry in UserModel.js and two controller function for sending and verifying otp
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for chipper-cucurucho-7e07f5 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
Add VerifyOTP.jsx and update Login.jsx and SignUp.jsx so that after login and signup, the user navigates to the verify route, and an OTP is sent to the user's email. After entering the OTP, the user will be logged in
@piyush-gangrade Send screen recording of running this pr on local and performing otp functionality |
OTP.feature.video.mp4 |
@piyush-gangrade Remove otp verification from login only keep it in signup |
@JayeshYadav99, the following changes have been made |
@piyush-gangrade Hello, Your contribution looks good to me but there are 2 huge flows
Video_240513165500.mp4
|
ok, I'll fix this issue and update |
update Signup.jsx, VeifyOTP.jsx, AuthController.js and AuthRoutes and add OtpModel.js and encrypt.js
Changes: Additions:
Updates:
Change.OTP.feature.functionality.mp4 |
@piyush-gangrade Cool , Since my exams are going on, So I was unable to do but I will make sure to give you update today. |
Thank you! Could you also please add assignees and labels |
PR #39
Add verifyOTP.jsx for sending and verifying OTP, and update Login.jsx and Signup.jsx accordingly.
Details: After users log in or sign up, they will navigate to the 'verify' route where they have to enter the OTP sent to their email. After submitting the OTP, if it is valid, a token will be sent to the user.