Skip to content

Commit

Permalink
correct length of time activation link is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
hsteuernagel committed Sep 27, 2024
1 parent 2c4a53c commit 23b4d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Model/User/Handler/SendActivationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public function __invoke(SendActivation $command): void
throw UserNotFound::withUserId($command->userId());
}

$token = $this->resetPasswordHelper->generateResetToken($user);
// 60 seconds * 60 minutes * 24 hours * 14 days = 1,209,600 seconds
$token = $this->resetPasswordHelper->generateResetToken($user, 60 * 60 * 24 * 14);

$verifyUrl = $this->router->generate(
'user_activate_token',
Expand Down

0 comments on commit 23b4d3c

Please sign in to comment.