Skip to content

Commit

Permalink
fix(core): Decrease reset password token expire time (#7598)
Browse files Browse the repository at this point in the history
Decrease the expiration time from 1 day to 20 minutes

Github issue / Community forum post (link here to close automatically):
  • Loading branch information
tomi committed Nov 3, 2023
1 parent b532a7b commit 2aa7f63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion packages/cli/src/controllers/passwordReset.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class PasswordResetController {
const resetPasswordToken = this.jwtService.signData(
{ sub: id },
{
expiresIn: '1d',
expiresIn: '20m',
},
);

Expand Down

0 comments on commit 2aa7f63

Please sign in to comment.