From 086af154cf03cb7e2038e146a36f47d1e91d20ab Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Wed, 14 Jan 2026 14:40:27 -0600 Subject: [PATCH] se manda de forma correcta el password --- src/programa/programa.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,