19declare(strict_types=1);
37 public function init(): void
41 $this->
lng = $DIC->language();
42 $this->dual_opt_in_service = new \ILIAS\Registration\DualOptIn\Service\DualOptInServiceImpl(
46 $DIC->logger()->user(),
53 return 'reg_delete_expired_pending_registrations';
60 return $this->
lng->txt(
'reg_delete_expired_pending_registrations');
67 return $this->
lng->txt(
'reg_delete_expired_pending_registrations_desc');
72 return JobScheduleType::DAILY;
94 $num_deleted_users = $this->dual_opt_in_service->deleteExpiredUserObjects();
98 $result->setMessage(sprintf(
'%d inactive user objects with expired confirmation hash values (dual opt-in) deleted.', $num_deleted_users));
final const int STATUS_OK
Cronjob to delete user accounts for which the registration (dual opt-in) has never been finalized.
DualOptInService $dual_opt_in_service
hasAutoActivation()
Is to be activated on "installation", does only work for ILIAS core cron jobs.
getDefaultScheduleValue()
Class ilObjAuthSettingsGUI.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.