Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-07-13 10:35:29 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-07-13 10:35:29 +0300
commit6dd73315cc60edca050466eaec82485350def512 (patch)
tree753579c6d4140a9a48d08fea7d0d3036f13c6642 /lib/Command
parentcb8b676a13abb64fd02e870672be6e28e8242596 (diff)
Print newly created account ID on CLI
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Command')
-rw-r--r--lib/Command/CreateAccount.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Command/CreateAccount.php b/lib/Command/CreateAccount.php
index fd8a428a3..704800c16 100644
--- a/lib/Command/CreateAccount.php
+++ b/lib/Command/CreateAccount.php
@@ -133,9 +133,9 @@ class CreateAccount extends Command {
$account->setOutboundUser($smtpUser);
$account->setOutboundPassword($this->crypto->encrypt($smtpPassword));
- $this->accountService->save($account);
+ $account = $this->accountService->save($account);
- $output->writeln("<info>Account $email created</info>");
+ $output->writeln("<info>Account " . $account->getId() . " for $email created</info>");
return 0;
}