ref #6138 setPasword created #1798
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1798
Loading…
Reference in New Issue
No description provided.
Delete Branch "6138-setPassword"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -67,3 +70,3 @@
]
};
// Añadir filter para sacar user
Quitar comentario
@ -0,0 +32,4 @@
tx = await Self.beginTransaction({});
myOptions.transaction = tx;
}
try {
Faltaría añadir la validación que pone en la tarea:
Definir un método en worker setPassword, que permita cambiar la contraseña: por un jefe del trabajador o por rrhh si el usuario no tiene el correo verificado.
Lo hable con Javi y me dijo que solo por el jefe del trabajador
@ -0,0 +37,4 @@
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);
pon true
New commits pushed, approval review dismissed automatically according to repository settings