diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-07 15:39:34 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-05-02 09:31:22 +0200 |
commit | 9c9fec36dd469494738b57c691338cbe71926c10 (patch) | |
tree | d02f7bfec8ced060c1df1740e1dfadb3b7f10a37 /core/register_command.php | |
parent | a323111bd1285f74aa405c240be86b5de5d0c502 (diff) | |
download | nextcloud-server-9c9fec36dd469494738b57c691338cbe71926c10.tar.gz nextcloud-server-9c9fec36dd469494738b57c691338cbe71926c10.zip |
Add occ commands to enable and disable a user + a disabled user can no longer login - fixes #23838
Diffstat (limited to 'core/register_command.php')
-rw-r--r-- | core/register_command.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/register_command.php b/core/register_command.php index 798497d97d2..3dab37ce5a6 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -121,6 +121,8 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) { $application->add(new OC\Core\Command\User\Add(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); $application->add(new OC\Core\Command\User\Delete(\OC::$server->getUserManager())); + $application->add(new OC\Core\Command\User\Disable(\OC::$server->getUserManager())); + $application->add(new OC\Core\Command\User\Enable(\OC::$server->getUserManager())); $application->add(new OC\Core\Command\User\LastSeen(\OC::$server->getUserManager())); $application->add(new OC\Core\Command\User\Report(\OC::$server->getUserManager())); $application->add(new OC\Core\Command\User\ResetPassword(\OC::$server->getUserManager())); |