Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-05-17 16:48:41 +0300
committerChristoph Wurst <christoph@owncloud.com>2016-05-23 12:21:13 +0300
commit847bbc51b61b4222503ae089f78124c2d18d5f22 (patch)
tree9aceb14765309d83ed6d20fb2848caa8fb543661 /core/register_command.php
parentdfb4d426c24c8cbb7e207a3dd92b5fcd894a1977 (diff)
add OCC command to enable/disable 2FA for a user
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()));