This commit is contained in:
Yuri Kuznetsov
2021-04-28 10:33:27 +03:00
parent 1ed6099878
commit 28dcfd714e
2 changed files with 9 additions and 5 deletions

View File

@@ -63,8 +63,10 @@ class User extends \Espo\Core\Controllers\Record
throw new BadRequest();
}
return $this->getService('User')
$this->getService('User')
->changePassword($this->getUser()->id, $data->password, true, $data->currentPassword);
return true;
}
public function postActionChangePasswordByRequest($params, $data, $request)