prestashopBridge icon indicating copy to clipboard operation
prestashopBridge copied to clipboard

FIX - Login for prestashop 1.7.7.8

Open nemwiper opened this issue 4 years ago • 0 comments

Hi guys, I would like to share a login fix for the 1.7.7.8 I'm using this script for a while, it was working on prestashop 1.7.2, but on a recent update it stopped working. I checked the Context class and I saw that there is something new. You should add this at the end of the login function in the bridge, after writing the cookies and before returning:

$ctx->cookie->registerSession(new CustomerSession());

Hope it helps! ;)

nemwiper avatar Oct 01 '21 15:10 nemwiper