fix: correct reset password link in email

This commit is contained in:
Ali BARIN
2023-03-03 10:21:46 +00:00
parent f644113af8
commit a53961b235
2 changed files with 3 additions and 1 deletions

View File

@@ -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,
},
};

View File

@@ -8,7 +8,7 @@
Someone has requested a link to change your password, and you can do this through the link below.
<a href="/reset-password">Change my password</a>
<a href="{{ webAppUrl }}/reset-password?token={{ token }}">Change my password</a>
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.