summaryrefslogtreecommitdiffstats
path: root/core/command/resetpassword.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/command/resetpassword.php')
-rw-r--r--core/command/resetpassword.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/command/resetpassword.php b/core/command/resetpassword.php
index ab877655e27..ddff7a980d0 100644
--- a/core/command/resetpassword.php
+++ b/core/command/resetpassword.php
@@ -38,6 +38,7 @@ class ResetPassword extends Command {
protected function execute(InputInterface $input, OutputInterface $output) {
$username = $input->getArgument('user');
+ /** @var $user \OC\User\User */
$user = $this->userManager->get($username);
if (is_null($user)) {
$output->writeln("<error>There is no user called " . $username . "</error>");