]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the searchDisplayName recommended method in user:list
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 27 Apr 2023 13:25:13 +0000 (15:25 +0200)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 27 Apr 2023 13:25:13 +0000 (15:25 +0200)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
core/Command/User/ListCommand.php

index c254a8a11cfa28feba0cb850a2d97447dc94732d..bf4bf7f030e338bccc46430e1ce54366ac78762b 100644 (file)
@@ -74,7 +74,7 @@ class ListCommand extends Base {
        }
 
        protected function execute(InputInterface $input, OutputInterface $output): int {
-               $users = $this->userManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
+               $users = $this->userManager->searchDisplayName('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
 
                $this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info')));
                return 0;