Guides › WordPress › Security & hacks

WordPress Two-Factor Authentication Locked Me Out

Lost phone or broken 2FA can block login. Use backup codes or remove the plugin to regain access.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.

Try first

If nobody can log in

  1. Rename the two-factor plugin folder in wp-content/plugins through File Manager or FTP.
  2. Log in with your password.
  3. Re-enable the plugin and set up 2FA again, saving the backup codes in your password manager. See password managers.

Good practice

Keep two admins and store codes safely. Never share a code with anyone who contacts you, including people claiming to be support.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.