• Resolved normaals

    (@normaals)


    Hello,

    I’m using SiteGround security plugin on my WordPress. The site is hosted on Hostinger. I have a custom url for login and two factor authentication.


    After entering the correct login details and then entering the authentication code I get these errors:
    Error: The username field is empty.
    Error: The password field is empty.
    I have noticed that my custom URL is lost from the link at the moment when I enter the auth code ( ?sgs-token=my-custom-url ) maybe that is impacting the issue?

    If I try to use backup codes, I’m redirected to here: https://vectormine.com/wp-login.php?action=load_sgs2fabc
    And after entering login details getting this error:
    ERROR: You are trying to login with an administrative account. Please, use the Custom Login URL instead.

    So I’m locked out of my own site. Hope to get any help with this issue. Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dimo Dimov

    (@dimodi)

    Hello @normaals,

    If are not able to access the admin area you can disable the two-factor authentication using WP-CLI. The exact WP-CLI command that should be used is:

    wp sg secure 2fa disable

    Another way to accomplish this is by modifying your website’s database via phpMyAdmin or any other database management tool. In the options table of the website database, you should find the option called “sg_security_sg2fa” and change its value to “0”. This should be sufficient to disable the feature and grant you access to the administrative backend of the website so you can review the plugin configuration.

    Regards,
    Dimo

    Thread Starter normaals

    (@normaals)

    I’ve accessed my database and located the table named “wp_options”. However, I couldn’t find a row labeled “sg_security_sg2fa”. Could it possibly have a different name?

    Plugin Support Delyan Delov

    (@delyandelov)

    Hi @normaals,

    This is the correct option_name you should look for in the wp_options table. If you are unable to find it, you can execute the following query in the SQL tab in your phpMyAdmin:

    SELECT * FROM ‘wp_options’ WHERE ‘option_name’ LIKE ‘sg_security_sg2fa’

    This will return the exact row you need to edit as shown in the screenshot below:

    https://tinyurl.com/26p598s9

    • This reply was modified 1 year, 2 months ago by Delyan Delov.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘After entering login and auth. code getting an error’ is closed to new replies.