ref #6138 setPasword created #1798

Merged
jorgep merged 6 commits from 6138-setPassword into dev 2023-10-19 10:48:17 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 52b14cf8b4 - Show all commits

View File

@ -37,7 +37,7 @@ module.exports = Self => {
if (!isSubordinate) throw new UserError('You don\'t have enough privileges.');
await models.VnUser.setPassword(args.workerFk, args.newPass, myOptions);
await models.VnUser.updateAll({id: args.workerFk}, {emailVerified: 1}, myOptions);
await models.VnUser.updateAll({id: args.workerFk}, {emailVerified: true}, myOptions);
jorgep marked this conversation as resolved Outdated

pon true

pon true
if (tx) await tx.commit();
} catch (e) {