summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/register_command.php b/core/register_command.php
index 01ec2e7f28e..33e2ba46720 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -57,6 +57,13 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) {
$application->add(new OC\Core\Command\App\Enable(\OC::$server->getAppManager()));
$application->add(new OC\Core\Command\App\GetPath());
$application->add(new OC\Core\Command\App\ListApps(\OC::$server->getAppManager()));
+
+ $application->add(new OC\Core\Command\TwoFactorAuth\Enable(
+ \OC::$server->getTwoFactorAuthManager(), \OC::$server->getUserManager()
+ ));
+ $application->add(new OC\Core\Command\TwoFactorAuth\Disable(
+ \OC::$server->getTwoFactorAuthManager(), \OC::$server->getUserManager()
+ ));
$application->add(new OC\Core\Command\Background\Cron(\OC::$server->getConfig()));
$application->add(new OC\Core\Command\Background\WebCron(\OC::$server->getConfig()));