mirror of https://github.com/Chocobozzz/PeerTube
#1928 Add a sentence indicating the reset time limit on form and email
parent
4e9fa5b7e9
commit
232863422f
|
@ -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)
|
||||
|
|
|
@ -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}`
|
||||
|
|
Loading…
Reference in New Issue