Jump to content

Back office admin login loop


isaac.dvory

Recommended Posts

I moved the prestashop 1.6.1.4 to a new server, it works find but I can't login to the admin, It keeps looping back to the login screen without a username / password error... when I do enter wrong details I get a password error , but when Insert the details that I think are correct, it just loops back to the login page. 

So far I tried: 

1) deleting all from public_html/cache
2) different browser
3) deleted cookies
4) edited classes/Cookie.php isLoggedBack to : 

    public function isLoggedBack()
    {
        Tools::displayAsDeprecated();
        /* Employee is valid only if it can be load and if cookie password is the same as database one */
        return ($this->id_employee
            && Validate::isUnsignedId($this->id_employee)
            && Employee::checkPassword((int)$this->id_employee, $this->passwd)
        );
    }
 

Still can't login. 

Please help 

 

Thanks.

Link to comment
Share on other sites

  • 7 months later...

I am having the same issue as of yesterday. I can still login via Chrome, but in Firefox it just redirects back to the login page after clicking Log in. Thought it was just a cache/cookie/site data issue because all other user logins work except mine, but I cleared all site data and it's still doing it. Also tried resetting my password but that didn't do it either.

Has this issue not been solved yet?

Link to comment
Share on other sites

1 hour ago, jetway said:

Turn on Debug mode and see what the output is. Since you cannot access the BO you can do that by going into defines.inc.php and changing  define('_PS_MODE_DEV_', false); to define('_PS_MODE_DEV_', true);

@jetway thanks for the response and help! I put the site in debug mode but that didn't tell me much. I was able to figure out what the issue was though... I blocked cookies for the domain that we have Prestashop installed on because I was setting up a Mailchimp Subscriber pop-up that shows on each user's first visit and got tired of clearing my site data every time I wanted to test the pop-up so I blocked the site from using cookies and cache. After re-enabling cookies only the login loop is gone, so I'm assuming that if you have cookies blocked the login goes into this loop.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...