From a53961b23508ddc77ade94dac439229da63cd69e Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Fri, 3 Mar 2023 10:21:46 +0000 Subject: [PATCH] fix: correct reset password link in email --- packages/backend/src/graphql/mutations/forgot-password.ee.ts | 2 ++ .../backend/src/views/emails/reset-password-instructions.ee.hbs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/graphql/mutations/forgot-password.ee.ts b/packages/backend/src/graphql/mutations/forgot-password.ee.ts index 0d0ef97f..045ee704 100644 --- a/packages/backend/src/graphql/mutations/forgot-password.ee.ts +++ b/packages/backend/src/graphql/mutations/forgot-password.ee.ts @@ -1,3 +1,4 @@ +import appConfig from '../../config/app'; import User from '../../models/user'; import emailQueue from '../../queues/email'; import { @@ -30,6 +31,7 @@ const forgotPassword = async (_parent: unknown, params: Params) => { template: 'reset-password-instructions', params: { token: user.resetPasswordToken, + webAppUrl: appConfig.webAppUrl, }, }; diff --git a/packages/backend/src/views/emails/reset-password-instructions.ee.hbs b/packages/backend/src/views/emails/reset-password-instructions.ee.hbs index 1fb678f4..5cc7d582 100644 --- a/packages/backend/src/views/emails/reset-password-instructions.ee.hbs +++ b/packages/backend/src/views/emails/reset-password-instructions.ee.hbs @@ -8,7 +8,7 @@ Someone has requested a link to change your password, and you can do this through the link below. - Change my password + Change my password If you didn't request this, please ignore this email. Your password won't change until you access the link above and create a new one.