From aa503506650916dd9d24b8e55084bf0f452dd0f2 Mon Sep 17 00:00:00 2001 From: pacifiquemboni Date: Mon, 22 Jul 2024 20:47:44 +0200 Subject: [PATCH] Fix user updating password after x amount of time --- src/helps/MailTemplate.ts | 5 ++++- src/utils/sendChangePasswordNofication.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/helps/MailTemplate.ts b/src/helps/MailTemplate.ts index 7cd37e7c..fdbfe53e 100644 --- a/src/helps/MailTemplate.ts +++ b/src/helps/MailTemplate.ts @@ -2,7 +2,10 @@ const millisecondsToDate = require('./datesConversion'); import dotenv from 'dotenv'; dotenv.config(); -export const sendChangePasswordNotificationMail = (userToken: any, userName: string) => ` +export const sendChangePasswordNotificationMail = ( + userToken: any, + userName: string, +) => ` diff --git a/src/utils/sendChangePasswordNofication.ts b/src/utils/sendChangePasswordNofication.ts index c978b430..a6dd833e 100644 --- a/src/utils/sendChangePasswordNofication.ts +++ b/src/utils/sendChangePasswordNofication.ts @@ -5,7 +5,10 @@ function changePasswordUpdateNotification(user: any, token: string): void { const userName: string = user.firstName; const userToken: string = token; const subject: string = 'You are required to update your password'; - const htmlContent: string = sendChangePasswordNotificationMail(userToken,userName); + const htmlContent: string = sendChangePasswordNotificationMail( + userToken, + userName, + ); sendMail(email, userName, subject, htmlContent); }