Merge pull request 'fix(client): use account setPassword' (!1500) from client_use_account_setPassword into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1500
Reviewed-by: Vicent Llopis <vicent@verdnatura.es>
This commit is contained in:
Alex Moreno 2023-05-04 07:38:09 +00:00
commit 9030aea17c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ module.exports = Self => {
const isAccount = await models.Account.findById(id);
if (isClient && !isAccount)
await models.VnUser.setPassword(id, newPassword);
await models.Account.setPassword(id, newPassword);
else
throw new UserError(`Modifiable password only via recovery or by an administrator`);
};