Blog

WordPress Two-Factor Authentication: enabling it for all your administrators, and its limitations

You will learn why WordPress two-factor authentication only applies to some of your administrators, and how to extend it to everyone with a few settings. You will also learn what nexya doesn't do yet, passkeys and backup codes, and how to avoid getting locked out.

WordPress Two-Factor Authentication: enabling it for all your administrators, and its limitations

Key points

  • nexya Pro's two-factor authentication uses TOTP and applies to the roles you choose.
  • An administrator remains protected by just their password if their role is not chosen or if they haven't linked their app.
  • Refused codes often come from the phone or server time.
  • nexya offers neither passkeys nor backup codes: plan for two protected administrators and a backup of the keys.
  • The free version already limits failed attempts, with an email unblocking link.

WordPress Two-Factor Authentication: why only one administrator out of two sees it

On the WordPress.org forums, the same question comes up every week: two-factor authentication works for one administrator, but not for the second. Or the code is requested once, then not at all. Or backup codes are not generated.

In most cases, the extension works. What is missing is one of two conditions: the person’s role is part of the protected roles, and that person has linked their own authentification app to their account. If either is missing, the account logs in using only its password.

This article reviews these two conditions in order, along with what nexya does and what it does not do.

What nexya offers, and in which version

Two-step login is part of nexya Pro. It relies on TOTP, the system of six-digit codes that change every thirty seconds in an app like Google Authenticator, Aegis, or a password manager. You choose the roles involved: administrators, and other roles if you wish.

The free version, freexya, available on WordPress.org, does not contain the code for two-step login. It already protects logins in another way, with the failed attempt limit described below. nexya Pro is sold on nexya.dev, comes with a seven-day free trial without a credit card, and inherits the settings from the free version.

Two things are not part of nexya today: passkeys and backup codes. These are additions to be made, not hidden settings. If you need them right now, you will need another extension for that part.

An account is protected if its role is chosen and if the person has linked their app. Without both, the password is sufficient.

Enable two-factor authentication for all administrators

  1. 1

    Turn on the Security module

    In the nexya hub, turn on the Security module. Two-step login requires nexya Pro.

    Turn on the Security module
  2. 2

    Check each administrator's role

    Check what role each person administering the site has. A store manager or a role created by a plugin is not an administrator.

    Check each administrator's role
  3. 3

    Choose the protected roles

    In the two-step login settings, check all the roles found in the previous step, and not just Administrator.

  4. 4

    Have each phone linked

    Ask each person to link their own authenticator app to their account, and then keep a backup of that key.

  5. 5

    Test in a private window

    Log in with each account in a private window. The code must be requested each time. Keep one session open during the test, just in case.

The three causes that keep coming up on the forums

The role is not what you think. A second administrator sometimes has another role: shop manager, editor, or a role created by an extension. If only the Administrator role is checked, this account remains left out. nexya’s Roles and Capabilities module displays the site’s roles and their permissions, allowing you to check who has what.

The person has not registered. Choosing a role does not link the phones for them. Each user must associate their own app with their account. Until that is done, no code will be requested.

The phone’s time is out of sync. A TOTP code depends on time. If the phone or server is fast or slow by more than a minute, codes are rejected even though they look correct. Setting the phone to automatic time fixes most of these cases. If that is not enough, the host can check the server time.

  • Account role missing from the chosen roles
  • App never linked to the account
  • Phone or server time out of sync

Passkeys and backup codes: what does not exist yet

A passkey replaces the password with a key kept on the device, unlocked by fingerprint, face, or device passcode. nexya does not offer this. If your forum thread talks about passkeys not displaying, the cause comes from another extension.

Backup codes are a list of single-use codes to keep aside for the day a phone is lost. nexya does not generate them either. Therefore, there is nothing to fix when they do not appear: the feature is not there.

This absence changes one practical thing: you need to plan ahead on how to access the site if a phone disappears.

Planning for the loss of a phone

The simplest rule: at least two protected administrators, each with their own phone. If one loses theirs, the other can log in and fix the blocked account.

Also keep each account’s key in a safe place. Many authenticator apps know how to backup or export their accounts. A password manager that handles TOTP codes does the same job.

As a last resort, file access via FTP or the host’s file manager remains. Renaming the extension folder in wp-content/plugins deactivates it, and logins revert to WordPress alone. Be aware that all nexya modules will stop at the same time, not just two-step login. Rename it back to the original name as soon as you have regained control.

The Security module firewall rejects attack requests before WordPress starts.
The Security module firewall rejects attack requests before WordPress starts.

What already protects logins in the free version

Without nexya Pro, the Security module limits failed login attempts. After several failed tries, login is blocked, first for fifteen minutes, then longer with each repeat offense, up to twenty-four hours. An unblocking link is emailed so that a legitimate user can get back in without waiting.

The same module adds a lightweight firewall that rejects requests carrying an attack before WordPress starts up, along with security HTTP headers. Two-factor authentication comes as an addition: it protects for the day a password leaks despite everything.

This unblocking link arrives by email. If the site’s emails are not sending, it will not arrive either. The Mail module allows you to send a test message to verify this.

FAQ

Is two-factor authentication in the free version of nexya?

No. Two-step login is part of nexya Pro, sold on nexya.dev with a seven-day trial without a credit card. The free version limits failed login attempts.

Why doesn't my second administrator have to enter a code?

Either their role is not among the chosen roles, or they haven't linked their authenticator app to their account yet. Check both.

Does nexya generate backup codes?

No, not for now. Plan for a second protected administrator and a backup of the keys in your app or password manager.

Can you log in with a passkey?

Not with nexya. Passkeys are not part of the plugin today.

My six-digit code is refused even though it is correct, why?

TOTP codes depend on time. Set the phone to automatic time. If the problem persists, ask the host to check the server time.

The modules in this post

nexya security nexya hub nexya roles

Try nexya Pro free for 7 days

Every module, forms, newsletters and the page cache, on your site. No commitment.

See the plans Or discover the free version