Methods
- Authenticator app (TOTP) — any standard app: 1Password, Bitwarden, Google Authenticator, Aegis, Authy.
- Email codes — a single-use code to the account's address. Weaker than TOTP, and worth offering anyway to people who will not install an app.
- Recovery codes — single-use, generated at enrolment, shown once.
Secrets are encrypted at rest with libsodium. A database dump does not hand over everybody's TOTP seeds.
For phishing-resistant sign-in without codes at all, see Passkeys — a passkey login is strong authentication and suppresses the second-factor step entirely.
Enforcement, per role
Three modes:
| Mode | Behaviour |
|---|---|
| Optional | Available; nobody is required to enrol |
| Required | Cannot sign in without a second factor |
| Required with grace | Required, but the account has N days to enrol first |
Use the grace period. Switching straight to Required on a role whose members have not enrolled means every one of them is locked out on the morning you switch it on, and they will all contact you at once.
With grace, they are prompted, warned, and given a deadline. Sites that skip this step are the ones that file a support ticket the same day.
Where people enrol
Administrators and editors enrol on their WordPress profile screen.
Customers usually cannot reach that screen at all — most stores block wp-admin for customers, and WooCommerce sends them to /my-account/. That is what the front-end account page exists for. If you are enforcing two-factor on a store, enable it, or the only people able to comply will be your staff.
What happens at sign-in
Credentials are checked first, then the interstitial asks for the code. A failed code does not sign the account in and is logged.
Both the successful and failed paths write events, so the Login Log distinguishes "wrong password" from "right password, wrong code" — which is a materially different signal.
When it goes wrong
Somebody has lost their phone, or you enabled Required too eagerly.
wp itxuo 2fa-reset <user>
Clears one account's second factor. It does not stand the module down for anybody else — see WP-CLI.
And the blunt hatch, when you cannot even reach a shell that has WP-CLI:
define( 'ITXUO_DISABLE_2FA', true );
in wp-config.php bypasses the whole module. That is the documented guarantee: two-factor can never permanently lock a site's owners out. It is also site-wide and it stays off until you remove the line, so it is the wrong tool for one lost phone.
What gets logged
Enrolment, removal, successful verification, failed verification, recovery-code use, and administrative resets — with the actor recorded, so "who cleared this person's 2FA" has an answer.
Settings
Per-role policy is stored under policy.role.<role>.two_factor. On multisite, Network can force a policy onto every subsite.