---
title: "Two-factor authentication"
description: "Ask for a one-time code by e-mail when admins, managers or members log in."
url: "https://sutraplugins.com/docs/membersutra/two-factor-authentication/"
updated: "2026-11-16"
category: "Security & Privacy"
---

# Two-factor authentication

**⭐ Pro feature:** Two-factor authentication needs MemberSutra Pro.

Go to **MemberSutra → Settings → Two-Factor Auth**.

1. Turn on **Enable 2FA Email Verification**.
2. Under **Enforce 2FA For**, choose Administrators & Shop Managers, Members Only, All Registered Users or specific roles.
3. Set the passcode length and how long a code stays valid.
4. Optionally let people **Remember Device** so trusted browsers are not asked every time.
5. Save, then log in from a private window to test.

Codes are sent by e-mail and work on the WordPress and WooCommerce login forms. Wrong codes count towards the login lockout on the Security & Login tab, and whitelisted IP addresses skip the code.

**⚠️ Important:** Make sure your site sends e-mail reliably before enforcing 2FA for administrators.
