SMS Verification Code to user Phone Number

↘锁芯ラ 提交于 2021-01-28 10:18:02

问题


What can I do to verify that the mobile phone number on the registration form?

User: Website RegisterForm > Enter the telephone number > Phone confirmation code > Membership Ok!

How is this done?


回答1:


You don't give much information on what technologies you're using, so there might be a better tailored solution for your case, but you'll need to generate your access code (ideally using a secure random generator), configure your backend to access a SMS Webservice like Esendex (please note, it's not free), send the code through it and then validate that the code the user inputs is exactly the one you've generated.

Here you can find a link to their SMS PHP SDK.




回答2:


Consider using Twillio. They have an API to handle SMS and phone transactions. You can call the API from within PHP, and their rates are like 1 cent per text or less.



来源:https://stackoverflow.com/questions/9363346/sms-verification-code-to-user-phone-number

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!