Fixed: KPI access is now under employee permission in back-office
Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
@@ -71,7 +71,7 @@ class IdentityControllerCore extends FrontController
|
||||
$this->errors[] = Tools::displayError('This email address is not valid');
|
||||
} elseif ($this->customer->email != $email && Customer::customerExists($email, true)) {
|
||||
$this->errors[] = Tools::displayError('An account using this email address has already been registered.');
|
||||
} elseif (!Tools::getIsset('old_passwd') || (Tools::encrypt($old_passwd) != $this->context->cookie->passwd)) {
|
||||
} elseif (!Tools::getIsset('old_passwd') || !(new PasswordHashing())->validateHash($old_passwd, $this->context->cookie->passwd)) {
|
||||
$this->errors[] = Tools::displayError('The password you entered is incorrect.');
|
||||
} elseif (Tools::getValue('passwd') != Tools::getValue('confirmation')) {
|
||||
$this->errors[] = Tools::displayError('The password and confirmation do not match.');
|
||||
|
||||
Reference in New Issue
Block a user