mirror of
https://github.com/nextcloud/server.git
synced 2024-08-07 03:07:59 +02:00
1f7e2ba599
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
29 lines
605 B
PHP
29 lines
605 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OC\Core\BackgroundJobs;
|
|
|
|
use OC\Core\Db\LoginFlowV2Mapper;
|
|
use OCP\AppFramework\Utility\ITimeFactory;
|
|
use OCP\BackgroundJob\TimedJob;
|
|
|
|
class CleanupLoginFlowV2 extends TimedJob {
|
|
public function __construct(
|
|
ITimeFactory $time,
|
|
private LoginFlowV2Mapper $loginFlowV2Mapper,
|
|
) {
|
|
parent::__construct($time);
|
|
|
|
$this->setInterval(3600);
|
|
}
|
|
|
|
protected function run($argument): void {
|
|
$this->loginFlowV2Mapper->cleanup();
|
|
}
|
|
}
|