Multi-Factor Authentication (MFA) For Magento 2

Secure your customer accounts with advanced two-factor authentication using Email OTP or Authenticator apps

Hikmadh MFA extension is designed to strengthen customer login security by introducing a second verification step. It supports both Email OTP and Google/Microsoft Authenticator (TOTP-based) authentication methods.

The module is lightweight, easy to configure, and fully integrated with Magento’s customer login flow. It ensures that only verified users can access their accounts while maintaining a smooth user experience.

βœ” Dual authentication methods (Email & Authenticator)
βœ” Secure session-based verification
βœ” Easy admin configuration
βœ” Seamless Magento integration

Hikmadh Multi-Factor Authentication (MFA) extension adds an extra layer of security to your Magento 2 store by requiring OTP verification after login. Protect user accounts from unauthorized access and enhance trust with flexible authentication methods.

Key Features

πŸ” Advanced MFA: Adds an extra layer of security using Email OTP or Authenticator App for customer login.

πŸ“§ Email OTP Verification: Sends a one-time password to the customer’s registered email to verify identity during login.

πŸ“± Authenticator App Integration: Supports Google and Microsoft Authenticator using secure TOTP-based verification.

βš™οΈ Flexible Admin Configuration: Easily enable or disable authentication methods directly from the Magento admin panel.

🚫 Mutual Exclusivity Protection: Prevents both Email OTP and Authenticator from being enabled at the same time.

πŸ”„ Seamless Login Flow: Automatically redirects users to verification and logs them in after successful OTP validation.

πŸ”’ Secure Session Handling: Stores OTP, customer ID, and secrets securely using Magento core session.

πŸ›‘οΈ Protect Unauthorized Access: Blocks account access without OTP verification even if login credentials are compromised.

πŸ“² QR Code-Based Setup: Generates QR codes dynamically for quick setup in authenticator apps during login.

⚑ Lightweight & High Performance: Built with optimized logic ensuring no impact on Magento store performance.

INSTALLATION

System Requirements

Magento 2.3.x / 2.4.x

PHP 7.4 or higher

SMTP configured (for Email OTP)

Upload Module

app/code/Hikmadh/TwoFA

Installation Steps

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush

CONFIGURATION

Navigate to:

Stores β†’ Configuration β†’ Hikmadh β†’ Two Factor Authentication

Available Settings

Enable Email OTP

Sends OTP to customer email after login

Enable Google Authenticator

Enables QR-based authentication using authenticator apps

Important Rule

Only one authentication method can be enabled at a time.

If both are enabled, the system will prevent saving configuration.

HOW IT WORKS

1.Β  Customer logs in with email & password
2.Β  System intercepts login using plugin
3.Β  Based on configuration:
Email OTP β†’ OTP sent to email
Authenticator β†’ QR code displayed
4.Β  Customer enters OTP
5.Β  System verifies OTP
6.Β  Customer is logged in successfully

WHY CHOOSE HIKMADH MFA?

Hikmadh MFA extension provides a secure and flexible authentication system tailored for Magento 2 stores. It enhances customer trust and protects sensitive user data with minimal configuration effort. Whether you run a small store or a high-traffic eCommerce platform, this extension ensures reliable and scalable security.

βœ” Easy to implement
βœ” Secure authentication
βœ” Flexible configuration
βœ” Future-ready architecture