mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge cd1d3cb3c2 into d02155784b
This commit is contained in:
commit
35ba4b82bd
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue