How to Use the Twilio Add-on for 2-Step Authentication with Pie Register

The Two-step authentication process adds an extra layer of security to your WordPress registration forms. It helps protect your data from cyber-attacks and prevents spam users or automated bots from registering on your website.

Two-Step Authentication Add-on in Pie Register

Pie Register’s Two-Step Authentication add-on allows you to connect your Twilio account with the registration forms. You can verify the user accounts by sending a text to their number and making sure that the user is authentic.

In case if you don’t know, Twilio is an online platform that provides a link between the internet and the telecom networks. It lets you send and receive text messages, calls, and more to engage customers on any channel, anytime.

How to Use Twilio Add-on with Pie Register

In this tutorial, we will show how to use the Twilio add-on for adding two-step authentication in your WordPress registration forms using Pie Register.

If you are new to Pie Register, you may want to take a look at How to Install and Activate the Add-ons in Pie Register.

Step 1: Setting Up Your Twilio Account

 To use the Twilio add-on for Pie Register, you must first have a Twilio account. If you are a first-time user Create a New Account from here.

Twilio lets you set a trial account which includes a free balance for experimenting. This quick guide will help you explore how to set-up your trial account.

Once your account is set, you will get a Twilio Number, Account SID, and an Auth token to connect your account with Pie Register.

Step 2: Activating the Twilio Add-on for Pie Register

  • If you are using Pie Register Premium, all features and add-ons are part of the package and you can simply activate the Twilio add-on from the list of plugins. Then under the Help > Licence Tab, click the activate button.

  • If you are a Pie Register Basic user, you can buy the Twilio add-on separately. Just activate the add-on from the list of plugins and then add the License key and Email-address under the Help > Licence Tab. Click on the Activate button.

Step 3: Connecting your Twilio Account with Pie Register

  • Once the add-on is activated, go to Pie Register > Twilio(SMS).

  • Enable Twilio and Save settings.

  • Below the General settings, you will find the section for Account Settings. Add the Twilio Phone number, Twilio Account Sid, and the Twilio Auth Token that you already have from the Twilio account and Save the settings.

Step 4: User Settings

After connecting the Twilio account with your Pie Registration plugin, you can now customize the User settings.

You will find the User Settings section below the Account Settings.

Enable the Two Way Login so each time the user will try to log-in, a PIN will be sent to the user’s number to verify the user authenticity.

Add the PIN Expire time in minutes.

Enable Notify Admin if you want to get a notification via SMS each time a new user registers.

Save the settings.

Step 5: Adding the 2Way Login Phone Number Field in the Form

After saving all the settings, add the 2Way login field in your registration form. This is the field where the user will enter the phone number to receive the PIN for authentication.

Edit the field Label and make sure to mark it as required.

Follow the below step only if you want to redirect your users to the Login page after Registration instead of displaying a Thank you message.

Click on the Edit option for the Submit Button of the form.

Select the Redirect option and enter the URL of the Login page to redirect the users directly to the Login page once they register.

Save the settings.

This is how your Registration form should look

Upon registration, the user will be redirected to the Login page where the Login details will be entered by the user. After submission of the Login form, a PIN will be generated and sent to the User’s mobile number to verify and authenticate the user.

A new PIN will be sent each time the user tries to login for a safe and secure sign-in process.

Are you still using Pie Register basic? Upgrade to Premium Now and enjoy the premium features and add-ons.


Buy the Twilio Add-on for Pie Register as a separate add-on.


That’s it. It is easy to set up and connect your Twilio account with Pie Register. It helps strengthen your website’s security and make the sign-in process safe. If you have any questions, please let us know in the comments or Contact Us. We love hearing from our valuable customers. 🙂