#1928 Add a sentence indicating the reset time limit on form and email

pull/2305/head
Nassim Bounouas 2019-06-22 15:47:07 +02:00
parent 4e9fa5b7e9
commit 232863422f
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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}`