// BugFix : Problem with token

This commit is contained in:
mDeflotte
2011-11-22 16:09:49 +00:00
parent 50db73ae8d
commit 7075d40121
2 changed files with 11 additions and 6 deletions
+5
View File
@@ -278,6 +278,9 @@ class AuthControllerCore extends FrontController
$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->update();
// Add customer to the context
$this->context->customer = $customer;
Hook::exec('authentication');
// 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)
{
elog(Tools::getToken(false));
$return = array(
'hasError' => !empty($this->errors),
'errors' => $this->errors,