mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +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>Somebody asked to reset your password on n8n ({{ domain }}).</p>
|
||||
<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>
|
||||
|
||||
@@ -120,7 +120,7 @@ export class PasswordResetController {
|
||||
const resetPasswordToken = this.jwtService.signData(
|
||||
{ sub: id },
|
||||
{
|
||||
expiresIn: '1d',
|
||||
expiresIn: '20m',
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user