• Resolved switchtojoy

    (@switchtojoy)


    I’m facing an issue with the Defender app. The KB articles let me know that I need to enable MFA in Defender, then go to my profile page to create a QR code. However, the button to enable MFA in the profile page of WordPress does not exist for me. WordPress now forces me to the user page, to enable MFA, where the button does not exist. I need to FTP into the site, rename the defender folder and then I can navigate into WordPress again.

    If I re?nstall Defender, the same thing happens without me needing to configure something, so I’m assuming there is a config file somewhere still enabling MFA even after a fresh install. I checked with a friend of mine, who uses WPMU, and the profile user in his installation does have the option for MFA.

    Anyone else had this issue before and knows how to solve it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @switchtojoy

    I hope you are doing good today.

    Could you navigate to Defender -> Settings -> Data & Settings and click on “Reset Settings” and see if that helps?

    Also please try to:
    Defender -> Settings -> Data & Settings -> Uninstallation -> Data (switch to “Remove” and unistall plugin). After that install once again and see can you still replicate same issue.

    Please let us know about the results.

    Kind Regards,
    Kris

    Thread Starter switchtojoy

    (@switchtojoy)

    Hey kris, sorry for the delay in answer.

    Unfortunately, I’m unable to navigate to defender which I stated in the original post.

    If I rename the defender folder via FTP, I have access to my entire site. If I re?nstall Defender from the WordPress store the profile page is the only page I can visit.

    I think this has to do with the fact that I forced MFA to all users.

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @switchtojoy,

    Can you try follow these steps please:
    1. Activate Defender

    2. Access your site files via FTP or cPanel and inside /wp-content/mu-plugins/ folder (if you don’t have mu-plugins folder there simply create it yourself) create new PHP file, you can name it whatever you want, for example disable_def_2fa.php

    3. Edit that file and paste this code inside it:

    <?php
    add_action( 'init', function () {
        if ( ! isset( $_GET['resetAuth'] ) ) {
            return;
        }
        delete_option( 'wd_2auth_settings' );
        delete_site_option( 'wd_2auth_settings' );
    } );

    4. Visit your site homepage and add this at the end of URL /?resetAuth=1 so you go to URL like this:
    yourdomain.com/?resetAuth=1

    This action will deactivate 2FA in Defender so you should be able to access your site normally while Defender is still being active.
    You can now remove the mu-plugin and follow the steps that Kris mentioned earlier to clean up Defender settings and configure it again.

    Hope this helps.

    Cheers,
    Predrag

    Thread Starter switchtojoy

    (@switchtojoy)

    @predrag thank you for your assistance, this has partly solved my issue.

    I can now access the back-end again, but if I activate 2FA, without forcing it to the users, I’m not able to generate a QR code.

    I installed Defender on another site, where it does work.
    https://ibb.co/4ZtrXKv

    Defender v 2.4.5
    Wordpress Version 5.7.2

    But on the current site I’m working on, it doesnt work.
    https://ibb.co/LpvXXy3

    Defender v 2.5.3
    Wordpress Version 5.7.2

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @switchtojoy

    Could you enable the debug mode on your website:

    https://wpmudev.com/blog/debugging-wordpress-how-to-use-wp_debug/

    Replicate the issue and check if any log is generated in wp-content > debug.log?

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @switchtojoy

    I’m marking this topic as “resolved” due to recent inactivity. If more assistance is needed, feel free to post back here or create a new topic.

    Take care,
    Dimitris

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘MFA QR Generation not visible in Profile Page’ is closed to new replies.