aboutsummaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-11-23 23:10:48 +0100
committerSean Molenaar <sean@seanmolenaar.eu>2021-01-05 13:05:17 +0100
commit40595f3ee038369e1eca7d567363965c2e181ce9 (patch)
treef62a32b67486c100e648879e0edf5d78232ff78b /core/register_command.php
parent50b380e85b46f37de3612e4aa077726e8da94d01 (diff)
downloadnextcloud-server-40595f3ee038369e1eca7d567363965c2e181ce9.tar.gz
nextcloud-server-40595f3ee038369e1eca7d567363965c2e181ce9.zip
Command: Add app password generation
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/register_command.php b/core/register_command.php
index dc53c729067..fe998020d20 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -45,6 +45,7 @@
*/
/** @var Symfony\Component\Console\Application $application */
+
$application->add(new \Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand());
$application->add(new OC\Core\Command\Status);
$application->add(new OC\Core\Command\Check(\OC::$server->getSystemConfig()));
@@ -178,6 +179,7 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) {
$application->add(new OC\Core\Command\User\Setting(\OC::$server->getUserManager(), \OC::$server->getConfig(), \OC::$server->getDatabaseConnection()));
$application->add(new OC\Core\Command\User\ListCommand(\OC::$server->getUserManager(), \OC::$server->getGroupManager()));
$application->add(new OC\Core\Command\User\Info(\OC::$server->getUserManager(), \OC::$server->getGroupManager()));
+ $application->add(new OC\Core\Command\User\AddAppPassword(\OC::$server->get(\OCP\IUserManager::class), \OC::$server->get(\OC\Authentication\Token\IProvider::class), \OC::$server->get(\OCP\Security\ISecureRandom::class), \OC::$server->get(\OCP\Security\ICrypto::class)));
$application->add(new OC\Core\Command\Group\Add(\OC::$server->getGroupManager()));
$application->add(new OC\Core\Command\Group\Delete(\OC::$server->getGroupManager()));