From 9985f5e52aca66df03a996301d980e9b1c2e4417 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Mon, 18 Dec 2023 06:51:30 -0800 Subject: [PATCH 1/2] Update VerificationToken.php Signed-off-by: Ronak Patel --- lib/private/Security/VerificationToken/VerificationToken.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Security/VerificationToken/VerificationToken.php b/lib/private/Security/VerificationToken/VerificationToken.php index 5f606d0e04901..fe4c39c1cfc93 100644 --- a/lib/private/Security/VerificationToken/VerificationToken.php +++ b/lib/private/Security/VerificationToken/VerificationToken.php @@ -101,6 +101,7 @@ public function create( IUser $user, string $subject, string $passwordPrefix = '', + , int $expirationTime = self::TOKEN_LIFETIME * 2 ): string { $token = $this->secureRandom->generate( 21, @@ -115,7 +116,7 @@ public function create( 'userId' => $user->getUID(), 'subject' => $subject, 'pp' => $passwordPrefix, - 'notBefore' => $this->timeFactory->getTime() + self::TOKEN_LIFETIME * 2, // multiply to provide a grace period + 'notBefore' => $this->timeFactory->getTime() + $expirationTime, // multiply to provide a grace period ]); $this->jobList->add(CleanUpJob::class, $jobArgs); From cd1d3cb3c247bda38d3d0354805cc3fe654db558 Mon Sep 17 00:00:00 2001 From: Ronak Patel Date: Mon, 18 Dec 2023 06:52:39 -0800 Subject: [PATCH 2/2] Update VerificationToken.php Signed-off-by: Ronak Patel --- lib/private/Security/VerificationToken/VerificationToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Security/VerificationToken/VerificationToken.php b/lib/private/Security/VerificationToken/VerificationToken.php index fe4c39c1cfc93..2625d1fe0154c 100644 --- a/lib/private/Security/VerificationToken/VerificationToken.php +++ b/lib/private/Security/VerificationToken/VerificationToken.php @@ -101,7 +101,7 @@ public function create( IUser $user, string $subject, string $passwordPrefix = '', - , int $expirationTime = self::TOKEN_LIFETIME * 2 + int $expirationTime = self::TOKEN_LIFETIME * 2 ): string { $token = $this->secureRandom->generate( 21,