Search Results :


Allow end users to setup 2FA/MFA for Drupal with Inline Registration

Allow end users to setup 2FA/MFA for Drupal with Inline Registration

Inline Registration is the process following which the users can easily configure/set up the 2FA method for their account. This document will walk you through the steps of enabling the seamless process of setting up 2FA for the users. 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 Inline Registration

  • Register/Login with miniOrange.
  • Navigate to Login Settings tab. (Path - /admin/config/people/miniorange_2fa/login_settings)
  • Enable the Checkbox Enforce users to set up their 2FA Method on First Login (Inline Registration).
  • Drupal 2FA select invoke inline registration
  • Configure the 2FA methods allowed for the end users. For instance, enable the checkbox Enable specific 2FA and deselect all the unnecessary 2FA methods (say, OTP and Other). The users would be prompted only with the selected list of methods (TOTP) during the inline registration process.

User Experience:

  • Enter the Drupal Username & Password then click on the Log in button.
  • Drupal 2FA - enter username and password into drupal site
  • Select any authentication method as per your choice and then click on the Next button. For Example, we have selected the Okta Verify Authenticator method.
  • Drupal 2FA Enter the Passcode
  • Scan the QR code in your mobile app and enter passcode generated in Okta Verify Authenticator app, then click on the Submit button.
  • Drupal 2FA Successfully configured okta Authenticator method

You have successfully configured the 2FA method by using Inline Registration.

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