100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps

Back to Blog

You turned on two-factor and locked out every customer

Enrolment lives on profile.php. Your customers cannot reach profile.php. So requiring a second factor locks out precisely the people with no way to comply — and the support queue arrives before you have finished reading the settings page.

Operations

You have a WooCommerce store with four thousand customer accounts. You decide, correctly, that two-factor authentication is overdue. You install a 2FA plugin, set it to required, and save.

Within the hour, nobody can sign in.

Not your staff — they enrolled last week when you tested it. Your customers. All four thousand of them, none of whom have ever seen a second-factor prompt, and none of whom can do anything about it.

Why it happens

Every WordPress 2FA plugin puts enrolment in the same place, because there is only one place core offers: the user profile screen, at /wp-admin/profile.php.

And on a store, customers never go there. Two reasons, both of which you almost certainly have:

WooCommerce redirects them. Customers are sent to /my-account/, which is a front-end page. That is where their orders, addresses and downloads live. It is the account page as far as they are concerned.

Most stores block wp-admin for customers. It is standard hardening, it is in most security guides, and it is baked into a lot of themes and hosting configurations. A customer who types the URL gets redirected out.

So the enrolment screen exists, and the population you just made it mandatory for cannot open it.

The shape of the failure

This is a specific and nasty class of bug: the requirement and the means to satisfy it are on opposite sides of a wall.

It is not that customers *chose* not to enrol. They were never asked, never told, and cannot comply now that it is required. Every one of them is in a state your interface has no exit from.

And the failure is silent from your side. You tested it as an administrator, on an account that had already enrolled, from a browser that was already signed in. Everything worked.

What actually happens next

Roughly in this order:

  1. Support tickets, from people who assume they have forgotten their password.
  2. Password resets, which do not help — the reset succeeds, the second-factor prompt still appears, and now they are angrier.
  3. Abandoned checkouts, which you will not see as a 2FA problem in your analytics.
  4. You switch it back off.
  5. The store now has no second factor at all, including for staff, because the fastest fix was the global one.

Step 5 is the real cost. A failed rollout does not leave you where you started; it leaves you with a team that will resist the next attempt.

Four things that prevent it

1. Put enrolment where the user already is

On a store, that means a front-end account security page — as a tab in My account, at a slug you choose. Same controls, reachable by somebody who has never seen wp-admin:

  • Enrol in two-factor and see recovery codes
  • Register and remove passkeys
  • Review recognised devices
  • See and end their own active sessions

If you enforce a second factor on a store and you do not have this, you are enforcing a requirement nobody can meet. That is the whole post in one sentence.

A front-end account security page as a customer sees it, offering two-factor enrolment, passkey registration, recognised devices and a list of the customer’s own active sessions — with no WordPress admin interface anywhere on the screen.
The same controls as the profile screen, on a page a customer can actually reach.

2. Use a grace period, always

Three enforcement modes are worth distinguishing:

ModeWhat it does
OptionalAvailable, nobody is required
RequiredCannot sign in without it
Required with graceRequired, but N days to enrol first

Going straight to Required on a population that has not enrolled locks all of them out simultaneously — and they all contact you at once, which is a different problem from locking out one person.

With a grace period they are prompted, warned, given a deadline, and the ones who ignore it are the ones you deal with individually rather than all at once.

3. Enforce per role, and start with the roles that need it

Administrators and editors first. They are few, they are reachable, they have wp-admin access by definition, and they are the accounts worth protecting most.

Customers are the largest population, the least reachable and — on most stores — the lowest value to an attacker. Requiring a second factor for four thousand people whose accounts contain a delivery address is a lot of risk for very little gain. Requiring it for the six people who can install a plugin is nearly all of the benefit for nearly none of the exposure.

4. Offer a method people will actually use

An authenticator app is the strongest ordinary option and the biggest ask — it means installing something. Email codes are weaker and get adopted. Passkeys are the interesting case: Touch ID, Face ID or Windows Hello, phishing-resistant in a way codes are not, and *easier* than a password once registered.

The strongest method with 4% adoption protects less than a weaker one at 80%.

Before you switch it on

A short list, in order:

  1. Confirm there is a front-end enrolment route. Open it as a customer, not as yourself.
  2. Turn it on for administrators only, with a grace period.
  3. Watch the enrolment count until it stops moving, then handle the stragglers by name.
  4. Extend to editors. Repeat.
  5. Decide, deliberately, whether customers need it at all.
  6. Know where the emergency hatch is *before* you need it.

On that last point: any plugin that can require a second factor should have a documented way to switch it off from wp-config.php without database access, and a way to clear one person's enrolment without standing it down for everybody. If yours has neither, the first lost phone becomes a database intervention.

The test that would have caught it

Open a private window. Sign in as a customer account — a real one, or one you made that has never touched wp-admin. Try to enrol.

If you cannot find the screen, neither can four thousand other people.

—

*ITX UserOps puts two-factor, passkeys, recognised devices and session management on a front-end account page — a tab in WooCommerce's My account, or a page you place — with per-role enforcement and grace periods, and ITXUO_DISABLE_2FA as the documented hatch. Two-factor and the front-end account page are premium; both are documented in full.*

A clearer WordPress admin
starts here.

Start with the free plugin. Add more control when you need it.

Log in

Vote on ideas, submit your own and join the discussion.