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
- Use backup codes you saved when you set up 2FA.
- Check whether the plugin offers email codes as a fallback.
- Ask another administrator to disable 2FA for your account.
If nobody can log in
- Rename the two-factor plugin folder in
wp-content/pluginsthrough File Manager or FTP. - Log in with your password.
- 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
- Your Website Shows a Warning in Chrome: Deceptive Site Ahead or Dangerous
- WordPress Login Page Keeps Reloading or Redirecting (Can't Log In)
- WordPress User Roles Explained: Administrator, Editor, Author, Contributor, Subscriber
- Unknown Administrator Users Appeared in WordPress: What to Do
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.