We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2402b44 commit a536b7aCopy full SHA for a536b7a
src/ResetPasswordHelper.php
@@ -76,9 +76,7 @@ public function generateResetToken(object $user): ResetPasswordToken
76
throw new TooManyPasswordRequestsException();
77
}
78
79
- $expiresAt = (new \DateTimeImmutable('now'))
80
- ->modify(\sprintf('+%d seconds', $this->resetRequestLifetime))
81
- ;
+ $expiresAt = new \DateTimeImmutable(\sprintf('+%d seconds', $this->resetRequestLifetime));
82
83
$tokenComponents = $this->tokenGenerator->createToken($expiresAt, $this->repository->getUserIdentifier($user));
84
0 commit comments