From 7fb0d12e880182eced25170eddaa7e990795b3af Mon Sep 17 00:00:00 2001 From: Zach Date: Fri, 15 Mar 2024 17:50:57 -0500 Subject: [PATCH] fix: changed reset-link-sent wording and renamed renderSuccss() to resetLinkMessage() --- default-views/auth/reset-link-sent.hbs | 2 +- lib/requests/password-reset-email-request.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/default-views/auth/reset-link-sent.hbs b/default-views/auth/reset-link-sent.hbs index 1059f963a..fc4477469 100644 --- a/default-views/auth/reset-link-sent.hbs +++ b/default-views/auth/reset-link-sent.hbs @@ -14,7 +14,7 @@
-

A Reset Password link has been sent to your email.

+

A Reset Password link has been from the associated email account.

diff --git a/lib/requests/password-reset-email-request.js b/lib/requests/password-reset-email-request.js index 7b11d2aa6..cd25178d3 100644 --- a/lib/requests/password-reset-email-request.js +++ b/lib/requests/password-reset-email-request.js @@ -96,7 +96,7 @@ class PasswordResetEmailRequest extends AuthRequest { .then(() => request.validate()) .then(() => request.loadUser()) .then((userAccount) => request.sendResetLink(userAccount)) - .then(() => request.renderSuccess()) + .then(() => request.resetLinkMessage()) .catch((error) => request.error(error)) } @@ -126,7 +126,7 @@ class PasswordResetEmailRequest extends AuthRequest { if (!exists) { // For security reason avoid leaking error information // See: https://github.com/nodeSolidServer/node-solid-server/issues/1770 - return this.renderSuccess() + return this.resetLinkMessage() } const userData = { username } @@ -197,7 +197,7 @@ class PasswordResetEmailRequest extends AuthRequest { /** * Displays the 'your reset link has been sent' success message view */ - renderSuccess () { + resetLinkMessage () { this.response.render('auth/reset-link-sent') } }