Skip to content

Commit

Permalink
fix(core): decrease reset password token expire time
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi committed Nov 3, 2023
1 parent 6d42fad commit 2447ecb
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 2447ecb

Please sign in to comment.