• Resolved Louis Dallara

    (@ldallara)


    I’ve tried both these scrips and they don’t work.

    add_action( ‘init’, ‘remove_login_access_data’ );
    function remove_login_access_data() {
    update_option( ‘sg_login_access’, array() );
    }

    Unable to unlock

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • @ldallara,

    We were locked out too and solved our issue using the following code:

    add_action( 'init', 'remove_unsuccessfull_attempts_block' );
    function remove_unsuccessfull_attempts_block() {
        update_option( 'sg_security_unsuccessful_login', array() );
    }

    Procedure:

    Add the above code to your functions.php file.

    File path: yourwebsite.com > public_html > wp-includes > functions.php

    Once you add the code, you should be able to log into your website using 2FA (if activated within the plugin). Beforehand, make sure you clear all cache and use a browser in incognito mode.

    After you login, go back to your functions.php file and remove the code.

    Noteworthy:

    If you find yourself being locked-out often, your admin username(s) could have been compromised which will require changing both your admin username(s) and password(s).

    Hope this helps.

    Cheers!

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jetxpert

    Thanks for the help.

    Marking as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Locked out’ is closed to new replies.