Title: 2FA problem
Last modified: October 6, 2022

---

# 2FA problem

 *  Resolved [onemoregaelle](https://wordpress.org/support/users/onemoregaelle/)
 * (@onemoregaelle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/)
 * Hello,
 * When I activate the 2FA option :
 * 1) I get this message :
 * `The 'wordpress_test_cookie' cookie does not have a proper 'SameSite' attribute
   value. Soon, cookies with the "SameSite" attribute missing or set to an invalid
   value will be treated as "Lax". This means that the cookie will no longer be 
   sent in third-party contexts. If your application depends on the availability
   of this cookie in such contexts, please add the attribute "SameSite=None" to 
   it. To learn more about the "SameSite" attribute, see https://developer.mozilla.
   org/docs/Web/HTTP/Headers/Set-Cookie/SameSite`
 * 2) And the Brute force login limit doesn’t work anymore.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F2fa-problem-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Prashant Baldha](https://wordpress.org/support/users/pmbaldha/)
 * (@pmbaldha)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/#post-16078629)
 * Are you able to log in from a new browser or incognito browser?
 *  Thread Starter [onemoregaelle](https://wordpress.org/support/users/onemoregaelle/)
 * (@onemoregaelle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/#post-16079150)
 * I can now ! It is working. What was the issue please ?
 *  Thread Starter [onemoregaelle](https://wordpress.org/support/users/onemoregaelle/)
 * (@onemoregaelle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/#post-16079774)
 * FOUND IT ! The cookie error happens when maintenance mode is on ! How can we 
   correct this please ?
 *  Plugin Contributor [Prashant Baldha](https://wordpress.org/support/users/pmbaldha/)
 * (@pmbaldha)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/#post-16083566)
 * I have enabled maintenance mode and cookie-based brute force prevention, but 
   I can’t face any issue at the login time. I can’t replicate the issue.
 * Thank you.
 *  Thread Starter [onemoregaelle](https://wordpress.org/support/users/onemoregaelle/)
 * (@onemoregaelle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/#post-16085593)
 * Hi, thanks for your answer, but it’s not a cookie-based brute force prevention
   problem, it is a 2FA problem : a two factor authentication problem.
 * When maintenance mode is on, the 2FA settings create a cookie problem in the 
   browser.
 * Thank you
 *  Plugin Contributor [Prashant Baldha](https://wordpress.org/support/users/pmbaldha/)
 * (@pmbaldha)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/#post-16089641)
 * We have resolved the issue in our development version of the plugin. We will 
   release AIOS 5.1.0 version in the next couple of days and you will get a resolution
   of your issue.
 * In between, You can add below code line in your wp-config.php file to disable
   2FA on your site.
 *     ```
       define('TWO_FACTOR_DISABLE', true);
       ```
   
 * Thank you for reporting the issue.
    -  This reply was modified 3 years, 7 months ago by [Prashant Baldha](https://wordpress.org/support/users/pmbaldha/).
 *  Thread Starter [onemoregaelle](https://wordpress.org/support/users/onemoregaelle/)
 * (@onemoregaelle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/2fa-problem-3/#post-16090663)
 * Thank you for your answer. I really need the 2FA so I will keep it activated 
   and turn off maintenance mode.
 * Thanks

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

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

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

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

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