Click here to Skip to main content
15,887,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,
I do have a requirement to authenticate the user with Otp validation instead of user id and password option in my web Application. I'm using html pages with javascript and Wcf service to performing the operations.

I searched lot of things but couldn't able to get corresponding related info. If any one of you had faced the same requirement, kindly let me know what to do in order to get resolve this issue.

Thanks!!!.

What I have tried:

I din't get any info related to my requirement in order to try.
Posted
Updated 4-May-17 22:03pm

1 solution

1) Create a Table with Mobile No/Email ID and user details and OTP columns'
2) Fill detail accordingly by registration form
3) Create services for get OTP  

       - Ask mobile number / Email address for OTP
       - If mobile number/email address already exists update OTP column with random string as OTP
       - Send OTP on Mobile/Email respestively 
    
4) Create service for Login

       - It needs mobile/email and OTP combination
       - Check that combination if it is correct then do login else return messsage "invalid login"

You have to modify it according to your need, I have just provided idea.
 
Share this answer
 
v2

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