Support » Plugin: iThemes Security (formerly Better WP Security) » canceling 2-factor authentication

  • I have a locally installed WordPress site with iThemes security. I made the mistake of turning on 2-factor authentication before I had configured a way to send me email, so I don’t seem to be able to log in. Can I get a suggestion as to how to disable that by tweaking files?

Viewing 3 replies - 1 through 3 (of 3 total)
  • According to the Pro 3.6.0 Changelog:

    Enhancement: Added check for the ITSEC_DISABLE_TWO_FACTOR define which allows for disabling all two-factor authentication. This should only be used temporarily to gain access to the site when locked out due to loss of valid two-factor methods.

    So add the line below to the wp-config.php file:

    define('ITSEC_DISABLE_TWO_FACTOR', true);

    To prevent any confusion, I’m not iThemes.

    • This reply was modified 2 months, 2 weeks ago by nlpro.

    It worked! Thanks, nlpro.
    Mike

    MATT M

    (@beardedginger)

    Hi Mike,

    I am glad to hear that code worked for you to disable 2 Factor. In the event you run into another feature of Security that is preventing you from logging in you can use the code below to disable all features to allow you to log in. This code will also be added into the wp-config.php file.

    define(‘ITSEC_DISABLE_MODULES’, true);

    I hope this helps!

    Thanks,
    Matt
    iThemes.com

    • This reply was modified 2 months, 1 week ago by MATT M.
    • This reply was modified 2 months, 1 week ago by MATT M.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.