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(
|
.subscribe(
|
||||||
() => {
|
() => {
|
||||||
const message = this.i18n(
|
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 }
|
{ email: this.forgotPasswordEmail }
|
||||||
)
|
)
|
||||||
this.notifier.success(message)
|
this.notifier.success(message)
|
||||||
|
|
|
@ -350,7 +350,7 @@ class Emailer {
|
||||||
addPasswordResetEmailJob (to: string, resetPasswordUrl: string) {
|
addPasswordResetEmailJob (to: string, resetPasswordUrl: string) {
|
||||||
const text = `Hi dear user,\n\n` +
|
const text = `Hi dear user,\n\n` +
|
||||||
`A reset password procedure for your account ${to} has been requested on ${WEBSERVER.HOST} ` +
|
`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` +
|
`If you are not the person who initiated this request, please ignore this email.\n\n` +
|
||||||
`Cheers,\n` +
|
`Cheers,\n` +
|
||||||
`${CONFIG.EMAIL.BODY.SIGNATURE}`
|
`${CONFIG.EMAIL.BODY.SIGNATURE}`
|
||||||
|
|
Loading…
Reference in New Issue