Click here to Skip to main content
15,888,313 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi,
I am working with MVC. I want to verify user with OTP in my Application. Could anyone suggest any link or example.
Thanks 


What I have tried:

I have tried
Twilio
But i want to verify Otp with Two Factor Authentication
.
Posted
Updated 29-Sep-19 18:03pm
v3

Hello,

I am not sure where you are struck up? as you tried, there is a clear Programmable SMS: Send and Receive Texts in Your App - Twilio[^] documentation here.

OTP in application logic should be written by you only. for example here I am taking example for change password.

1. In the database - table (user) , add new column called OTPCode.
2. Generate a random string when user click on the forgot password and same same into that column for that user.
3. Send SMS/EMail to that user.
4. validate the same when he wants to try to change the password.

** hope this will help you.

--RA
 
Share this answer
 
Comments
Afzaal Ahmad Zeeshan 4-May-18 11:30am    
5ed; good answer. Although I would suggest that you add a bit of structure to answers, it will greatly improve the quality and readability of your answers. :-)
Member 14552976 21-Aug-19 3:17am    
i have created an otp soterd in string ,now i dont know how to save it in Db,
help?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900