Skip to content

Commit

Permalink
Remove full-stop from reset password success message
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Feb 20, 2020
1 parent 504628c commit 28f990b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions changelog/unreleased/36984
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Bugfix: Remove full-stop from end of reset password message

When doing occ user:resetpassword username --password-from-env --send-email
the message "Successfully reset password for username" had a full-stop at the
end. Without --send-email there was no full-stop. The full-stop has been
removed to make the messages consistent.

https://github.com/owncloud/core/pull/36984
2 changes: 1 addition & 1 deletion core/Command/User/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$this->config->setUserValue($userId, 'owncloud', 'lostpassword', $this->timeFactory->getTime() . ':' . $token);
$success = $this->lostController->setPassword($token, $userId, $password, false);
if (\is_array($success) && isset($success['status']) && $success['status'] === 'success') {
$output->writeln("<info>Successfully reset password for {$username}.</info>");
$output->writeln("<info>Successfully reset password for {$username}</info>");
return 0;
} else {
$output->writeln("<error>Error while resetting password!</error>");
Expand Down

0 comments on commit 28f990b

Please sign in to comment.