diff --git a/appinfo/info.xml b/appinfo/info.xml index 9d09538766be74913df3180066be38c7308d34d2..e6f7fd124363990e703b50dda59af8d319e09d81 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -10,7 +10,7 @@ - 6.0.3 + 6.0.4 agpl Murena SAS EcloudAccounts diff --git a/lib/BackgroundJob/BlacklistedDomainsJob.php b/lib/BackgroundJob/BlacklistedDomainsJob.php deleted file mode 100644 index cf776076be02ad50151643709f986f3a189ff029..0000000000000000000000000000000000000000 --- a/lib/BackgroundJob/BlacklistedDomainsJob.php +++ /dev/null @@ -1,35 +0,0 @@ -setInterval(self::INTERVAL_PERIOD); - $this->setTimeSensitivity(self::TIME_INSENSITIVE); - $this->timeFactory = $timeFactory; - $this->userService = $userService; - $this->logger = $logger; - } - - protected function run($argument): void { - try { - $this->userService->updateBlacklistedDomains(); - } catch (\Exception $e) { - $this->logger->logException('Error updating blacklisted domains for account creation', ['exception' => $e]); - return; - } - } -} diff --git a/lib/Command/UpdateBlacklistedDomains.php b/lib/Command/UpdateBlacklistedDomains.php deleted file mode 100644 index 8b51a28a7b2c8212dc73f9bdb731665498498ce0..0000000000000000000000000000000000000000 --- a/lib/Command/UpdateBlacklistedDomains.php +++ /dev/null @@ -1,30 +0,0 @@ -userService = $userService; - } - - protected function configure() { - $this->setName(Application::APP_ID.':update-blacklisted-domains')->setDescription('Update blacklisted domains'); - } - - protected function execute(InputInterface $input, OutputInterface $output): int { - $this->userService->updateBlacklistedDomains(); - $output->writeln('Updated blacklisted domains for creation.'); - return 1; - } -} diff --git a/lib/Service/UserService.php b/lib/Service/UserService.php index ecf5bddd7c0d1454c0fcc53447e927a1be5586fc..1b8d5f46b4496ee64b75a58edc2f3de41f6f734c 100644 --- a/lib/Service/UserService.php +++ b/lib/Service/UserService.php @@ -585,9 +585,4 @@ class UserService { private function getDefaultQuota() { return $this->config->getSystemValueInt('default_quota_in_megabytes', 1024); } - public function updateBlacklistedDomains() { - $blacklisted_domain_url = 'https://raw.githubusercontent.com/disposable/disposable-email-domains/master/domains.json'; - $json_data = file_get_contents($blacklisted_domain_url); - $this->config->setAppValue(Application::APP_ID, 'blacklisted_domains', $json_data); - } }