summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-11 12:35:16 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-11 14:22:23 +0100
commitb1ff21ee2804c6c38e61a31914e38ae365d4948b (patch)
tree94157871dda9e14c902233769f3c7e01e3d382bb /core/register_command.php
parentcfaee93552b519b8e017e63fd5a82b1e5c9f951b (diff)
downloadnextcloud-server-b1ff21ee2804c6c38e61a31914e38ae365d4948b.tar.gz
nextcloud-server-b1ff21ee2804c6c38e61a31914e38ae365d4948b.zip
Add a console command user:add to create users over the console
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/register_command.php b/core/register_command.php
index 2328bc7685f..ba0567787d2 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -26,6 +26,7 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) {
$application->add(new OC\Core\Command\User\ResetPassword(\OC::$server->getUserManager()));
$application->add(new OC\Core\Command\User\LastSeen());
$application->add(new OC\Core\Command\User\Delete(\OC::$server->getUserManager()));
+ $application->add(new OC\Core\Command\User\Add(\OC::$server->getUserManager(), \OC::$server->getGroupManager()));
$application->add(new OC\Core\Command\L10n\CreateJs());
$application->add(new OC\Core\Command\Background\Cron(\OC::$server->getConfig()));
$application->add(new OC\Core\Command\Background\WebCron(\OC::$server->getConfig()));