From 57da02f8349c35c0b7e07acf55df38c14e4456d5 Mon Sep 17 00:00:00 2001 From: KulkarniShashank Date: Mon, 26 Aug 2024 17:48:28 +0530 Subject: [PATCH] fix: solved the clientId dcryption in verification email Signed-off-by: KulkarniShashank --- apps/user/src/user.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/user/src/user.service.ts b/apps/user/src/user.service.ts index 6e95c3ddf..2186617ab 100644 --- a/apps/user/src/user.service.ts +++ b/apps/user/src/user.service.ts @@ -177,6 +177,7 @@ export class UserService { try { const platformConfigData = await this.prisma.platform_config.findMany(); + const decryptClientId = await this.commonService.decryptPassword(clientId); const urlEmailTemplate = new URLUserEmailTemplate(); const emailData = new EmailDto(); emailData.emailFrom = platformConfigData[0].emailFrom; @@ -184,7 +185,7 @@ export class UserService { const platform = platformName || process.env.PLATFORM_NAME; emailData.emailSubject = `[${platform}] Verify your email to activate your account`; - emailData.emailHtml = await urlEmailTemplate.getUserURLTemplate(email, verificationCode, redirectUrl, clientId, brandLogoUrl, platformName); + emailData.emailHtml = await urlEmailTemplate.getUserURLTemplate(email, verificationCode, redirectUrl, decryptClientId, brandLogoUrl, platformName); const isEmailSent = await sendEmail(emailData); if (isEmailSent) { return isEmailSent;