// change passwd in cookie after changed it
This commit is contained in:
@@ -463,6 +463,14 @@ class AdminEmployeesControllerCore extends AdminController
|
||||
return parent::initContent();
|
||||
}
|
||||
|
||||
protected function afterUpdate($object)
|
||||
{
|
||||
$res = parent::afterUpdate($object);
|
||||
// Update cookie if needed
|
||||
if (Tools::getValue('id_employee') == $this->context->employee->id && Tools::getValue('passwd') && $object->passwd != $this->context->employee->passwd)
|
||||
$this->context->cookie->passwd = $this->context->employee->passwd = $object->passwd;
|
||||
}
|
||||
|
||||
public function ajaxProcessGetTabByIdProfile()
|
||||
{
|
||||
$id_profile = Tools::getValue('id_profile');
|
||||
|
||||
Reference in New Issue
Block a user