fix: correct reset password link in email
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user