From a2fd6525a0f627451380997e2859992b64c8181f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 19 Sep 2016 20:58:44 -0400 Subject: Fix some php doc --- app/Console/ResetTwoFactorCommand.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/Console/ResetTwoFactorCommand.php') diff --git a/app/Console/ResetTwoFactorCommand.php b/app/Console/ResetTwoFactorCommand.php index a64206b6..4a99db66 100644 --- a/app/Console/ResetTwoFactorCommand.php +++ b/app/Console/ResetTwoFactorCommand.php @@ -23,16 +23,14 @@ class ResetTwoFactorCommand extends BaseCommand if (empty($userId)) { $output->writeln('User not found'); - return false; + return 1; } if (!$this->userModel->update(array('id' => $userId, 'twofactor_activated' => 0, 'twofactor_secret' => ''))) { $output->writeln('Unable to update user profile'); - return false; + return 1; } $output->writeln('Two-factor authentication disabled'); - - return true; } } -- cgit v1.2.3