Magento 2 Two Factor AuthenticationMagento 2 Two Factor Authentication
Live Demo
Buy Now
Support
Live Demo
Buy Now
Support
  • Getting Started

    • Introduction
    • Requirements
    • Installation
  • Third-Party Setup

    • Twilio Setup
    • Firebase Setup
  • Configuration

    • Admin Configuration
    • i18n Translation
  • Authentication Channels

    • SMS Authentication
    • Email OTP
    • Email Verification Link
    • Push Notification
    • TOTP Authenticator App
  • Security & Recovery

    • Backup Recovery Codes
    • Brute-Force & Lockout
    • Admin Management & Unlock
  • Help

    • Troubleshooting
    • FAQ & Support

Email OTP Authentication

Email OTP sends a dynamic verification code directly to the customer's registered email inbox. It requires zero third-party SMS or API accounts, leveraging your existing Magento transactional email configuration.


Configuration

In Stores > Configuration > Webkul > Two Factor Auth, set Send Otp Via to Email.

Email Configuration


Workflow 1: New Customer Registration

  1. The customer fills out the sign-up form with their details and submits the form.

Customer Sign-Up

  1. A secure OTP is automatically generated and dispatched to the customer's email address.

OTP Email Received

  1. The customer copies the code from their email, inputs it into the 2FA verification prompt on the storefront, and confirms.

Enter Email OTP and Verify

  1. Once verified, the account registration is completed successfully.

Workflow 2: Existing Customer Login

  1. The customer enters their email address and password on the storefront login page.

Customer Login

  1. The 2FA prompt appears on screen and an authentication email is instantly dispatched to their inbox.

Email with OTP Code

  1. The customer enters the received OTP into the verification form.
  2. Upon successful validation, the customer is granted access to their account dashboard.
Prev
SMS Authentication
Next
Email Verification Link