diff --git a/modules/client/back/methods/client/setPassword.js b/modules/client/back/methods/client/setPassword.js index 68c11406d..e5b8949e7 100644 --- a/modules/client/back/methods/client/setPassword.js +++ b/modules/client/back/methods/client/setPassword.js @@ -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`); };