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') } }