diff options
Diffstat (limited to 'app/Console')
-rw-r--r-- | app/Console/ResetTwoFactorCommand.php | 6 |
1 files changed, 2 insertions, 4 deletions
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('<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; } } |