password strength params

This commit is contained in:
yuri
2019-09-17 17:05:07 +03:00
parent d21e61bdf5
commit 2fe1d892c5
14 changed files with 320 additions and 74 deletions

View File

@@ -86,9 +86,8 @@ class User extends \Espo\Core\Controllers\Record
throw new Error();
}
$this->getEntityManager()->removeEntity($request);
if ($this->getService('User')->changePassword($userId, $data->password)) {
$this->getEntityManager()->removeEntity($request);
return [
'url' => $request->get('url')
];