Title: Error Activating 2FA
Last modified: May 24, 2024

---

# Error Activating 2FA

 *  Resolved [kkbold](https://wordpress.org/support/users/kkbold/)
 * (@kkbold)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-activating-2fa-8/)
 * When attempting to enable 2FA, I enter the 6-digit code from my Authenticator
   app into the box and click the Activate button and receive an error message:
   
   The code provided does not match the expected value. Please verify that the time
   on your authenticator device is correct and that this server’s time is correct.
 * Server and WF Network time seem to be identical:
   Wordfence Network Time 2024-
   05-24 15:35:20 UTCServer Time 2024-05-24 15:35:20 UTC
 * I’ve seen many others have had this same issue and your response is generally
   to have them send you a diagnostic, so I will do that after submitting this ticket(
   so that I can enter the ticket number/forum username field).

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-activating-2fa-8/#post-17779575)
 * Hi [@kkbold](https://wordpress.org/support/users/kkbold/), thanks for getting
   in touch about this and sending over a diagnostic!
 * If the 2FA code was failing during login, I would consider a custom login page,
   hidden admin URL, or page other than the default WordPress/WooCommerce pages 
   that our Login Security features support.
 * The fact that it’s failing at setup has in many cases turned out to be the authenticator
   app itself. I would recommend trying an alternative like Authy if you’re using
   Google Authenticator (or vice versa). Strange as it sounds, sometimes we’ve seen
   one app work where another doesn’t.
 * If the above doesn’t solve the issue, I’d also disable all plugins except for
   Wordfence and revert to a default theme such as Twenty Twenty-Four temporarily.
   You can put your site into maintenance mode during this time if you prefer. Try
   enabling 2FA with the authenticator code at this time to see if a possible plugin/
   theme conflict was the reason for getting the original error message.
 * Let us know what you find out!
   Peter.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/error-activating-2fa-8/#post-17779575)
 * Status: resolved