// BugFix : Problem with token
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10446 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
40d2a6282b
commit
49922799e1
1 file changed
+5
@@ -278,6 +278,9 @@ class AuthControllerCore extends FrontController
|
|||||||
$this->context->cart->id_address_delivery = Address::getFirstCustomerAddressId((int)($customer->id));
|
$this->context->cart->id_address_delivery = Address::getFirstCustomerAddressId((int)($customer->id));
|
||||||
$this->context->cart->id_address_invoice = Address::getFirstCustomerAddressId((int)($customer->id));
|
$this->context->cart->id_address_invoice = Address::getFirstCustomerAddressId((int)($customer->id));
|
||||||
$this->context->cart->update();
|
$this->context->cart->update();
|
||||||
|
// Add customer to the context
|
||||||
|
$this->context->customer = $customer;
|
||||||
|
|
||||||
Hook::exec('authentication');
|
Hook::exec('authentication');
|
||||||
|
|
||||||
// Login information have changed, so we check if the cart rules still apply
|
// Login information have changed, so we check if the cart rules still apply
|
||||||
@@ -291,8 +294,10 @@ class AuthControllerCore extends FrontController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elog('here???');
|
||||||
if ($this->ajax)
|
if ($this->ajax)
|
||||||
{
|
{
|
||||||
|
elog(Tools::getToken(false));
|
||||||
$return = array(
|
$return = array(
|
||||||
'hasError' => !empty($this->errors),
|
'hasError' => !empty($this->errors),
|
||||||
'errors' => $this->errors,
|
'errors' => $this->errors,
|
||||||
|
|||||||
Reference in new issue
Block a user