Title: 2FA Problem
Last modified: March 30, 2023

---

# 2FA Problem

 *  Resolved [igorsweden](https://wordpress.org/support/users/igorsweden/)
 * (@igorsweden)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/2fa-problem-4/)
 * Hi,
 * I try to activate the 2FA login security feature.
 * When its activated, and I try to login the 2FA prompt doesn’t appear.
 * So can’t put in the code, and it automatically says that the login attempt is
   invalid. Now I have deactivated this feature, but I would very much want tot 
   use it. What can be the problem?
 * Best Regards
 * Igor
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F2fa-problem-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [wfjoshc](https://wordpress.org/support/users/wfjoshc/)
 * (@wfjoshc)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/2fa-problem-4/#post-16611200)
 * Hi [@igorsweden](https://wordpress.org/support/users/igorsweden/)
 * Thanks so much for reaching out about this issue – that’s definitely not how 
   it’s supposed to work! Let’s see if we can get to the bottom of what may be going
   on.
 * First, let’s make sure that Brute Force Protection is enabled site-wide. Navigate
   to Firewall > All Firewall Options and ensure that you have the option “Enable
   brute force protection” checked under Brute Force Protection. If not, there’s
   your answer.  Without this option enabled, two-factor authentication won’t process.
   If it isn’t enabled, flip the switch to “ON” and click the “Save Changes” button
   at the top of the page.  
 * ![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
   eyJpZCI6MTEwNzUwNjA2NzUsImRvbWFpbiI6IndvcmRmZW5jZS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6OTA3NjJ9.7AbF5cS2oe0uhsTszEI5LwuOZMIEqO3GKo591zqRtFw)
 * Hopefully two-factor authentication works now, but if this option was already
   enabled, let’s check to make sure that your IP address isn’t whitelisted on your
   website because this will bypass two-factor authentication and let you login 
   without requiring the 2FA code.  Make sure your [public facing IP address](https://www.whatsmyip.org/)
   is not listed on the Login Security > Settings page where it says “Allowlisted
   IP addresses that bypass 2FA”.   
   .
 * ![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
   eyJpZCI6MTEwNzUwNjA2NzQsImRvbWFpbiI6IndvcmRmZW5jZS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6OTA3NjJ9.
   RmmZewzwwf1jIkRHDFw0ZIA-is0Qb0fGoFj7Id2Hooc)
 * 
   Don’t forget to save the changes here too by clicking the blue “Save” button.
 * ![image](https://attachment.freshdesk.com/inline/attachment?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
   eyJpZCI6MTEwNzUwNjA2NzYsImRvbWFpbiI6IndvcmRmZW5jZS5mcmVzaGRlc2suY29tIiwiYWNjb3VudF9pZCI6OTA3NjJ9.
   aQCB7ZGPNG11k2GxRjvL9SLNVUa49LTkxGvX8YgjtPY)
 * Finally, can you see if you have any plugins enabled that bypass or hook on the
   WordPress login flow, such as a login redirect plugin or a membership plugin?
   Our plugin hooks in to the login flow fairly late in the process, so if you have
   other plugins that override the login flow, that may cause a conflict with two-
   factor authentication from Wordfence.  Examples could include Woocommerce or 
   Paid Membership pro.  We are working to have our 2FA feature compatible and hope
   to release that in the near future.  
 * Let me know if any of this doesn’t help, or if you have questions about anything
   else.  
 * Thanks,
 * Joshua
 *  Thread Starter [igorsweden](https://wordpress.org/support/users/igorsweden/)
 * (@igorsweden)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/2fa-problem-4/#post-16611383)
 * Hi,
 * Thanks a lot for your help.
 * I have brute force attack enabled, and my IP is not on the whitelist.
 * But I use WP User Front End-plugin which overrides the normal login.
 * So this is probably the problem why the 2FA doesn’t work.
 * I can check if this is a common issue with WP User front end-plugin.
 * Thanks for your input on this matter, I’ll see how to proceed with this.
 * Best Regards
 * Igor
 *  [wfjoshc](https://wordpress.org/support/users/wfjoshc/)
 * (@wfjoshc)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/2fa-problem-4/#post-16611548)
 * Hi [@igorsweden](https://wordpress.org/support/users/igorsweden/)
 * Thanks for getting back to me!
   Unfortunately, using a plugin like this will cause
   2FA to malfunction.You must use a standard WordPress login form with no custom
   theme, no plugins, or custom code.
 * I hope this helps to clarify.
   Thanks,
 * Joshua

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

The topic ‘2FA Problem’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [wfjoshc](https://wordpress.org/support/users/wfjoshc/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/2fa-problem-4/#post-16611548)
 * Status: resolved