Search Results :


Setup OTP over SMS as 2FA/MFA for Drupal

Two-factor authentication (2FA) plays a key role in securing Drupal accounts against password breaches by adding an additional layer of security. By following this document you can configure OTP Over SMS  as a Two Factor Authentication - TFA method for Drupal account. An OTP - one-time passcode  is generated when a user tries to log into  Drupal site with their usual account credentials and sent via text SMS to registered phone number. The Drupal Two Factor Authentication - 2FA / Passwordless Login is available for Drupal 7, Drupal 8, Drupal 9 and Drupal 10.

Installation Steps:

  • Download the module:
    composer require 'drupal/miniorange_2fa'
  • Go to Extend menu on your Drupal admin console and enable the module by enabling the checkbox and click on Install button.
  • Configure the module at:
  • Install the module:
    drush en miniorange_2fa
  • Clear the cache:
     drush cr
  • Configure the module at:
  • Navigate to Extend menu on your Drupal admin console and click on Install new module.
  • Install the Drupal Two Factor Authentication / Passwordless login module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on Install button.
  • Configure the module at

Configure OTP Over SMS as 2FA method:

  • Once the module is installed navigate to the Configuration section in the admin console of Drupal site and click on miniOrange Second Factor under people section. (/admin/config/people/miniorange_2fa/setup_twofactor)
  • Register/Login with your miniOrange account.
  • Navigate to the Setup Two Factor tab and scroll down to the OTP (One Time Passcode) based 2FA methods section.
  • Click on the Configure button next to OTP over SMS.
  • Drupal 2FA click configure button
  • Enter the mobile number in Phone Number text field and click on Request OTP.
  • Drupal-2FA-click-OTP-Over-SMS-Enter-Mobile-Number
  • Enter the OTP which you have received on registered phone number and click on Verify button.
  • Drupal-2FA-click-OTP-Over-SMS-Enter-OTP

You have successfully configured OTP Over SMS - 2FA method.

Verify 2FA:

  1. Open a new browser/private window and navigate to the login page of the Drupal site.
  2. Login with the Drupal credentials.
  3. You will be receive OTP on your registered phone number.
  4. Enter the OTP and click on the Verify button.
  5. If the authentication is successful you will be logged in to the Drupal site.

Additional Features:

Explore the advanced features offered by the module with full-featured trial. You can initiate the trial request using Request 7-day trial button under Register/Login tab of the module or reach out to us at for one-on-one assistance from Drupal expert.

 Case Studies
miniOrange has successfully catered to the use cases of 400+ trusted customers with its highly flexible/customizable Drupal solutions. Feel free to check out some of our unique case studies using this link.
 Other Solutions
Feel free to explore other Drupal solutions that we offer here. The popular solutions used by our trusted customers include SSO, User Provisioning, Website Security. 
  24*7 Active Support
The Drupal developers at miniOrange offer quick and active support for your queries. We can assist you from choosing the best solution for your use case to deploying and maintaining the solution.
Hello there!

Need Help? We are right here!

Contact miniOrange Support

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to