Installation
Prerequisites
- Drupal 10 or 11
- Two‑Factor Authentication (
tfa
) module
Steps
- Install via Composer:
bash composer require 'drupal/tfa_email_otp'
- Enable module:
bash drush en tfa_email_otp drush cache:rebuild
- Configure via Configuration → People → Two‑factor Authentication: select Email OTP as default validation plugin, save. It comes with an email template in which you can customize the OTP email sent to the user.