summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-07-27 10:52:05 +0200
committerThomas Citharel <tcit@tcit.fr>2022-08-25 11:31:21 +0200
commit3ce1996d5eeac5c2344229bd384b3de802ba7cff (patch)
treeda57592004be3112653c87e57353d6db7f2e16d5 /lib/private/Setup.php
parent9b5569ff74bbc099af7c2010471bae8958aa9dd4 (diff)
downloadnextcloud-server-3ce1996d5eeac5c2344229bd384b3de802ba7cff.tar.gz
nextcloud-server-3ce1996d5eeac5c2344229bd384b3de802ba7cff.zip
Add back TokenCleanupJob to invalidate old temporary tokens
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 177ede1e292..edbb9b33275 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -53,6 +53,7 @@ use Exception;
use InvalidArgumentException;
use OC\App\AppStore\Bundles\BundleFetcher;
use OC\Authentication\Token\PublicKeyTokenProvider;
+use OC\Authentication\Token\TokenCleanupJob;
use OC\Log\Rotate;
use OC\Preview\BackgroundCleanupJob;
use OCP\AppFramework\Utility\ITimeFactory;
@@ -450,6 +451,7 @@ class Setup {
public static function installBackgroundJobs() {
$jobList = \OC::$server->getJobList();
+ $jobList->add(TokenCleanupJob::class);
$jobList->add(Rotate::class);
$jobList->add(BackgroundCleanupJob::class);
}