From 232863422f0b2d16c0ddf33498d71b81516b77a8 Mon Sep 17 00:00:00 2001 From: Nassim Bounouas Date: Sat, 22 Jun 2019 15:47:07 +0200 Subject: [PATCH] #1928 Add a sentence indicating the reset time limit on form and email --- client/src/app/login/login.component.ts | 2 +- server/lib/emailer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index fc2442c0e..dc10de325 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts @@ -78,7 +78,7 @@ export class LoginComponent extends FormReactive implements OnInit { .subscribe( () => { const message = this.i18n( - 'An email with the reset password instructions will be sent to {{email}}.', + 'An email with the reset password instructions will be sent to {{email}}. The link will expire within 5 minutes.', { email: this.forgotPasswordEmail } ) this.notifier.success(message) diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index 73c2bcb1b..540c36025 100644 --- a/server/lib/emailer.ts +++ b/server/lib/emailer.ts @@ -350,7 +350,7 @@ class Emailer { addPasswordResetEmailJob (to: string, resetPasswordUrl: string) { const text = `Hi dear user,\n\n` + `A reset password procedure for your account ${to} has been requested on ${WEBSERVER.HOST} ` + - `Please follow this link to reset it: ${resetPasswordUrl}\n\n` + + `Please follow this link to reset it: ${resetPasswordUrl} (the link will expire within 5 minutes)\n\n` + `If you are not the person who initiated this request, please ignore this email.\n\n` + `Cheers,\n` + `${CONFIG.EMAIL.BODY.SIGNATURE}` -- 2.25.1