---
title: "WordPress two-factor authentication"
description: "WP Feint Pro adds two-factor authentication to WordPress: 6-digit TOTP codes, backup codes, 2FA required by role, no external service."
language: "en"
locale: "en-US"
type: "page"
canonical: "https://www.wp-feint.com/features/two-factor-authentication/"
published: "2026-10-27T23:16:49+00:00"
modified: "2026-11-23T09:39:48+00:00"
translations:
  en-US: "https://www.wp-feint.com/features/two-factor-authentication/index.md"
  fr-FR: "https://www.wp-feint.com/fr/fonctionnalites/double-authentification/index.md"
  es-ES: "https://www.wp-feint.com/es/funcionalidades/verificacion-en-dos-pasos/index.md"
  de-DE: "https://www.wp-feint.com/de/funktionen/zwei-faktor-authentifizierung/index.md"
  it-IT: "https://www.wp-feint.com/it/funzionalita/autenticazione-a-due-fattori/index.md"
  pt-BR: "https://www.wp-feint.com/pt/recursos/verificacao-em-duas-etapas/index.md"
  nl-NL: "https://www.wp-feint.com/nl/functies/tweestapsverificatie/index.md"
---

# WordPress two-factor authentication

With WP Feint Pro, a stolen password is no longer enough: every login also asks for a 6-digit code generated by an authenticator app.

## What two-factor authentication does

After the password, WordPress asks for a 6-digit code shown by an authenticator app on your phone: Google Authenticator, Microsoft Authenticator, 2FAS, Aegis, 1Password… The code changes every 30 seconds (TOTP standard).

New to the concept? Read our definition of [two-factor authentication (2FA)](https://www.wp-feint.com/glossary/two-factor-authentication/). To choose a method and roll it out without locking anyone out, follow our guide [how to choose and roll out two-factor authentication on WordPress](https://www.wp-feint.com/wordpress-two-factor-authentication/).

The setup QR code is generated on your own site: the secret is never sent to an external service. It is stored encrypted, and backup codes are kept only as hashes.

## Why it matters

Passwords leak, get guessed or get reused from one site to the next. Two-factor authentication protects your accounts even then, and it is the single most effective defense against an administrator account takeover.

## What’s included Pro

- **Each user turns it on** from their profile by scanning a QR code.
- **Ten 10-digit backup codes**, shown only once, each usable once. They can be regenerated.
- **Required by role**: affected users are sent back to their profile until they’ve set it up. Strongly recommended for administrators.
- **Brute-force protection**: 5 wrong codes per login, then back to the password step; after 5 failures, an increasing wait (1, 2, 4… minutes, up to one hour).
- **[XML-RPC](https://www.wp-feint.com/glossary/xml-rpc/) and REST API**: a protected account only accepts application passwords there.
- **Lasting protection**: accounts already using two-factor authentication keep it even if the license expires or is revoked. Other Pro features, however, stop working.

![WP Feint Pro "Two-step verification" card: activation link on the profile and the roles for which it is required](https://www.wp-feint.com/media/admin-2fa.webp)

## How to turn it on

- **For yourself**: Profile → “Two-step verification” section. Scan the QR code, enter the code shown, then click “Update Profile”. Keep your backup codes somewhere safe.
- **For a team**: WP Feint (the mask icon in the admin menu) → Protection → “Required for these roles”.
- **Lost phone**: log in with a backup code. An administrator can also turn off two-factor authentication from the user’s profile page.

## Limits and precautions

- The code depends on your phone’s clock: if codes are rejected, make sure automatic time is turned on.
- If the security keys in wp-config.php change, the secret can no longer be read: log in with a backup code, then turn two-factor authentication off and on again.
- Last resort: `define('WFP_DISABLE_2FA', true);` in wp-config.php suspends two-factor authentication for the whole site. Remove the line once the problem is fixed.
- External login systems that bypass the standard WordPress login form may not be covered.

### Related reading

- [Login attempt limiting](https://www.wp-feint.com/features/login-attempt-limiting/)
- [Email alerts and weekly report](https://www.wp-feint.com/features/email-alerts/)
- [Custom login page](https://www.wp-feint.com/features/custom-login-page/)
- [Administrator activity log](https://www.wp-feint.com/features/administrator-activity-log/)

## Start free, upgrade to Pro when you’re ready

The free version already hides WordPress, moves the login page, blocks XML-RPC and counts bots. Pro locks down logins, renames file URLs and monitors your sites for you: known vulnerabilities, core integrity, activity log, email alerts and the update status of all your sites in your member area. From €59 per year excl. tax, far less than the cleanup offers whose prices we checked. [Compare the costs](https://www.wp-feint.com/pricing/#cout-piratage).

[See Pro pricing](https://www.wp-feint.com/pricing/)

[Download the free version](https://www.wp-feint.com/download/)
