Skip to content

Commit

Permalink
Dev: Fixed reversed return codes for resetting password from cmd line
Browse files Browse the repository at this point in the history
  • Loading branch information
adamzammit committed Dec 6, 2017
1 parent f8dceac commit bda7a83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/commands/ResetPasswordCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public function run($sArgument)
$oUser->setPassword($sArgument[1]);
if ($oUser->save()) {
echo "Password for user {$sArgument[0]} was set.\n";
return 1;
return 0;
} else {
echo "An error happen when set password for user {$sArgument[0]}.\n";
return 0;
return 1;
}
} else {
echo "User ".$sArgument[0]." not found.\n";
return 0;
return 1;
}

} else {
Expand Down

0 comments on commit bda7a83

Please sign in to comment.