문제

I want to design a user registration page in asp.net, When user enter his mobile number he will get a verification code to the entered mobile, After entering that code in the verification code textbox in registration page, if it is matched then he will be as a registered user or else the he cannot move to the process.

How can I do this, I have googled about this issue I had not understand much about it. how can I do this in the INDIAN mobile networks?

도움이 되었습니까?

해결책

First off you need some kind of SMS API to send the text, such as Twilio. After this, you can generate some random number that will be sent to the user in the message, this same number you will store somewhere, maybe a database, along with the username or email address. When the user comes back with the number, you get the record by username or by the number, and compare it against the username or the number, and there you have it.

다른 팁

Take a look at this CodeProject article. It includes options for both Worldwide and India only services.

Or else, explore some SMS gateway services and choose whatever suits you. Basic idea would be similar to what is presented in the article.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top