Jump to content

Recommended Posts

That's a bit difficult without a 3rd party service. Each cell provider has a different way to send SMS to it's customers, and most likely you won't be able to find them ALL. There are services like Twilio that have an API to help. You can find more by googling "sms from website".

 

Basically you'd just generate a unique code on your site, store it in the database for the user and send the SMS to them with their code. There would be some form on your site where they enter the code and you'd check it against the database. You probably also want to set a time limit on how long the code is valid for. You'd of course also need to know the users mobile phone number.

Link to comment
https://forums.phpfreaks.com/topic/294515-one-time-password/#findComment-1505388
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.