Title: 2FA lost
Last modified: January 12, 2021

---

# 2FA lost

 *  Resolved [raiwp](https://wordpress.org/support/users/raiwp/)
 * (@raiwp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/2fa-lost-2/)
 * Hi,
 * I switched my old phone to a new one and forgot to take the 2FA authentication
   for my wordpress site with me…
 * So now I´m actually locked out from my site´s backend and the key is within…
 * How can I access my site´s backend again without 2fa to initiate the authentication
   anew…?!
 * Thanks for help
    Rai

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Anonymous User
 * (@anonymized-17490918)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/2fa-lost-2/#post-13898709)
 * I also have this problem. I’d really like to see how to resolve this using the
   WP CLI if possible.
 *  Thread Starter [raiwp](https://wordpress.org/support/users/raiwp/)
 * (@raiwp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/2fa-lost-2/#post-13898744)
 * Just solved a few minutes ago:
 * Go to site via FTP (e.g. FileZilla): yoursite.com –> wp-content –> plugins –>
   rename the file that contains authentication-plugin…
 * When done you can Login without 2FA and modify your settings in WP backend anew…
 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/2fa-lost-2/#post-13898852)
 * Hello [@raiwp](https://wordpress.org/support/users/raiwp/) and @bwackwat
 * If you have 2FA setup and you cannot get the code, then there is not much you
   can do but to disable the plugin as [@raiwp](https://wordpress.org/support/users/raiwp/)
   recommended.
 * That is why we recommend everyone to generate [2FA backup codes](https://www.wpwhitesecurity.com/2fa-backup-codes/),
   they are a life saviour when you cannot get a code from your smartphone app.
 * Please do not hesitate to ask should you have any other questions.
 *  Anonymous User
 * (@anonymized-17490918)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/2fa-lost-2/#post-13899425)
 * Thanks. Additionally, the following SQL allowed me to reset my 2FA settings:
 * `DELETE FROM wp_usermeta WHERE meta_key = 'wp_2fa_enabled_methods' AND user_id
   = <USER_ID>;`
 * `INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES (<USER_ID>, '
   wp_2fa_user_enforced_instantly', 1);`
 * Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘2FA lost’ is closed to new replies.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

## Tags

 * [2fa](https://wordpress.org/support/topic-tag/2fa/)
 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [Wordpress Backend](https://wordpress.org/support/topic-tag/wordpress-backend/)

 * 4 replies
 * 3 participants
 * Last reply from: Anonymous User
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/2fa-lost-2/#post-13899425)
 * Status: resolved