diff --git a/src/programa/programa.service.ts b/src/programa/programa.service.ts index fa75b5d..53cd5f2 100644 --- a/src/programa/programa.service.ts +++ b/src/programa/programa.service.ts @@ -75,13 +75,13 @@ export class ProgramaService { if (!responsable) { - const password = await this.authService.encriptar( - await this.authService.generarPassword(), - ); + + let contraseña=await this.authService.generarPassword(); + const password = await this.authService.encriptar(contraseña); - const correoInfo = enviarSec(password, prog.correo, prog.nombre); + const correoInfo = enviarSec(contraseña, prog.correo, prog.nombre); responsable = await this.usuarioRepo.create({ usuario: prog.correo,