mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Decrease reset password token expire time (#7598)
Decrease the expiration time from 1 day to 20 minutes Github issue / Community forum post (link here to close automatically):
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<p>Hi {{firstName}},</p>
|
<p>Hi {{firstName}},</p>
|
||||||
<p>Somebody asked to reset your password on n8n ({{ domain }}).</p>
|
<p>Somebody asked to reset your password on n8n ({{ domain }}).</p>
|
||||||
<br />
|
<br />
|
||||||
<p>Click the following link to choose a new password. The link is valid for 2 hours.</p>
|
<p>Click the following link to choose a new password. The link is valid for 20 minutes.</p>
|
||||||
<a href="{{ passwordResetUrl }}">{{ passwordResetUrl }}</a>
|
<a href="{{ passwordResetUrl }}">{{ passwordResetUrl }}</a>
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export class PasswordResetController {
|
|||||||
const resetPasswordToken = this.jwtService.signData(
|
const resetPasswordToken = this.jwtService.signData(
|
||||||
{ sub: id },
|
{ sub: id },
|
||||||
{
|
{
|
||||||
expiresIn: '1d',
|
expiresIn: '20m',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user