Skip to content
Launch offer 50% off your first year of Keel Pro. See prices →

Login & accounts

Turn on two-factor login

After the password, users enter a 6-digit code from email or an authenticator app, so a stolen password alone is no longer enough. Setup, roles, apps and the rescue switch.

3 minutes read · Updated November 28, 2026

Most WordPress break-ins through the login use a password that was guessed or leaked from another site. Two-factor login adds a second step: after the password, the person enters a 6-digit code sent by email or shown in an authenticator app on their phone. Without that code, the password is useless.

Before you switch it on

Email codes only work if WordPress email arrives quickly and does not land in spam.

  1. Open Keel › Setup › Notifications and press Send test email.
  2. If it arrives within a minute in the inbox, you are ready.
  3. If it is slow, in spam or missing, set up SMTP first.

Tell your team a day before: “After your password, you will get a 6-digit code by email. If it does not arrive within a minute, check spam.”

Turn it on

  1. Open Keel › Login & accounts › Two-factor login.
  2. Switch on Turn on two-factor login and save.
  3. Log out, and log in again. After your password, Keel emails you a code. Enter it.

From now on, everyone receives a code by email after their password. Nobody has to set anything up first, which is why email codes are the easiest way to protect a whole team on day one.

Choose who needs it (Keel Pro)

Who needs it limits two-factor login to the roles you tick, for example Administrator, Editor and Shop manager. Leave everything unticked to protect every user. On shops and membership sites, protecting staff roles and leaving customers alone is a common, sensible choice.

Authenticator apps (Keel Pro)

With Offer an authenticator app after an email login, Keel shows a QR code once after someone logs in with an email code. They scan it with Google Authenticator, Microsoft Authenticator, 1Password, Authy or any similar app. App codes appear instantly and work offline, without depending on email. People can decline and keep email codes, or set up the app later in their profile.

Login links let people log in with a one-time emailed link instead of a password. People who use an authenticator app still enter their app code after the link. See log in with a one-time email link.

Locked out?

If codes stop arriving (for example because email broke), use the rescue switch:

  1. Open wp-config.php in the main WordPress folder with your host’s file manager or FTP.
  2. Add this line above /* That's all, stop editing! */:
define( 'KEEL_DISABLE_2FA', true );
  1. Log in, fix email, then remove the line again.

See locked out of WordPress for every rescue switch.

Good to know

  • Wrong codes count as failed logins, so guessing codes gets an address blocked like guessing passwords.
  • Codes expire after a short time and work only once.
  • Two-factor events (sent, used, failed) appear in the security log.

Every setting on this screen

The same explanations you see next to each setting in Keel.

Keel › Login & accounts › Two-factor login

Setting What it does
Turn on two-factor login Everyone receives a code by email after their password. Send a test email above first. Locked out? Add define( 'KEEL_DISABLE_2FA', true ); to wp-config.php.
Who needs it (Pro) Tick roles to limit it to them. Leave everything unticked to protect every user.
Offer an authenticator app after an email login (Pro) Shows a QR code once after login. App codes arrive instantly and work offline. Users can decline and keep email codes, or set it up later in their profile.
Still stuck?

Pro customers: use Support in your account. Everyone else: write to us, we read everything.

Contact

Five minutes from now

Give your site a keel.

Steady when traffic spikes, calm when attacks come, found when people search. Start free; go Pro when a site needs more.