mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Feature/password reset link expiration (#2305)
* #1928 Add a sentence indicating the reset time limit on form and email
* #1928 Customizable password reset lifetime
* #1928 Add a route to verify reset link and call it on reset form init
* Revert "#1928 Customizable password reset lifetime"
This reverts commit 0ed97453f8
.
* #1928 Reset password lifetime hardcoded to one hour
* Remove useless modifications for #1928
This commit is contained in:
parent
ae05c99125
commit
f88ee4a952
3 changed files with 3 additions and 3 deletions
|
@ -369,7 +369,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 1 hour)\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…
Add table
Add a link
Reference in a new issue