Register with either phone or email

Posted 2 months ago by successdav

Can you please guide me on how to setup a registration system where the user can use an email or a phone number in place of email to register. e.g.

Enter your email or Phone

If the user provides an email - I have already setup a script to send the user and email using mailgun.

but if the user provides a phone.. I should be able to detect and send the user a token to confirm the phone number.

In summary what I need is:

  1. Unlike mailgun, what service do I use to send confirmation code
  2. How do I configure the register process to detect if the user typed in a number or email so to enable me post to the right column in my table.

Thanks for your time

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.