Merge pull request #1286 from vishal-singh-webkul/gli-2060_2
Fixed: Admin is able to create new account using the banned guest account email in the back-office.
This commit is contained in:
@@ -1094,7 +1094,7 @@ class AdminCustomersControllerCore extends AdminController
|
||||
$this->errors[] = Tools::displayError('An account already exists for this email address:').' '.$customer_email;
|
||||
$this->display = 'edit';
|
||||
return $customer;
|
||||
} elseif (Customer::customerExists($customer_email, false, true)) {
|
||||
} elseif (Customer::customerExists($customer_email, false, false)) {
|
||||
$this->errors[] = Tools::displayError('The email is already associated with a banned account. Please use a different one.');
|
||||
$this->display = 'edit';
|
||||
} elseif (trim(Tools::getValue('passwd')) == '') {
|
||||
|
||||
Reference in New Issue
Block a user