diff --git a/core/server/services/auth/passwordreset.js b/core/server/services/auth/passwordreset.js index efba95ea97..f810a0fe54 100644 --- a/core/server/services/auth/passwordreset.js +++ b/core/server/services/auth/passwordreset.js @@ -123,12 +123,10 @@ async function sendResetNotification(data, mailAPI) { const adminUrl = urlUtils.urlFor('admin', true); const resetToken = security.url.encodeBase64(data.resetToken); const resetUrl = urlUtils.urlJoin(adminUrl, 'reset', resetToken, '/'); - const resetLink = urlUtils.urlJoin(adminUrl, 'reset', `${resetToken.slice(0, 5)}...`); const content = await mail.utils.generateContent({ data: { - resetUrl, - resetLink + resetUrl }, template: 'reset-password' }); diff --git a/core/server/services/mail/templates/reset-password.html b/core/server/services/mail/templates/reset-password.html index ea372a9467..a4c8bda041 100644 --- a/core/server/services/mail/templates/reset-password.html +++ b/core/server/services/mail/templates/reset-password.html @@ -23,7 +23,7 @@

Hey there!

You can use this link to create a new password for your account on {{siteTitle}}:

-

{{resetLink}}

+

{{resetUrl}}

If you have any trouble, you should contact your site administrator for help.