// Fix #PSCFV-4387
This commit is contained in:
1 parent
1990311d6b
commit
b0f6579883
1 file changed
-11
@@ -417,19 +417,8 @@ class AuthControllerCore extends FrontController
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!$customer->is_guest)
|
if (!$customer->is_guest)
|
||||||
{
|
|
||||||
$customer->cleanGroups();
|
|
||||||
// we add the customer in the default customer group
|
|
||||||
$customer->addGroups(array((int)Configuration::get('PS_CUSTOMER_GROUP')));
|
|
||||||
if (!$this->sendConfirmationMail($customer))
|
if (!$this->sendConfirmationMail($customer))
|
||||||
$this->errors[] = Tools::displayError('Cannot send e-mail');
|
$this->errors[] = Tools::displayError('Cannot send e-mail');
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$customer->cleanGroups();
|
|
||||||
// we add the guest customer in the guest customer group
|
|
||||||
$customer->addGroups(array((int)Configuration::get('PS_GUEST_GROUP')));
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->updateContext($customer);
|
$this->updateContext($customer);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user