This commit is contained in:
Ronak Patel 2026-06-13 04:49:37 +02:00 committed by GitHub
commit 35ba4b82bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,6 +85,7 @@ class VerificationToken implements IVerificationToken {
IUser $user,
string $subject,
string $passwordPrefix = '',
int $expirationTime = self::TOKEN_LIFETIME * 2
): string {
$token = $this->secureRandom->generate(
21,
@ -99,7 +100,7 @@ class VerificationToken implements IVerificationToken {
'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);