Fix some php doc

This commit is contained in:
Frederic Guillot
2016-09-19 20:58:44 -04:00
parent 91c1109b05
commit a2fd6525a0
3 changed files with 4 additions and 6 deletions

View File

@@ -23,16 +23,14 @@ class ResetTwoFactorCommand extends BaseCommand
if (empty($userId)) {
$output->writeln('<error>User not found</error>');
return false;
return 1;
}
if (!$this->userModel->update(array('id' => $userId, 'twofactor_activated' => 0, 'twofactor_secret' => ''))) {
$output->writeln('<error>Unable to update user profile</error>');
return false;
return 1;
}
$output->writeln('<info>Two-factor authentication disabled</info>');
return true;
}
}