diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-02-01 12:22:02 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-02-01 12:22:02 +0300 |
commit | bc526da969ebe6632596d14538498c609839ceb0 (patch) | |
tree | b02aa700d3bf3354155a7d00534ca00ffec495bf /lib | |
parent | 5b105cee52712c28fa73de7200e2a800198cf6e9 (diff) |
Fix updating and account and log errors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/AccountsController.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/Controller/AccountsController.php b/lib/Controller/AccountsController.php index 88d2d6f75..15af56962 100644 --- a/lib/Controller/AccountsController.php +++ b/lib/Controller/AccountsController.php @@ -153,7 +153,21 @@ class AccountsController extends Controller { * @return JSONResponse * @throws ClientException */ - public function update(int $id, string $accountName, string $emailAddress, string $password, string $imapHost, int $imapPort, string $imapSslMode, string $imapUser, string $imapPassword, string $smtpHost, int $smtpPort, string $smtpSslMode, string $smtpUser, string $smtpPassword, bool $autoDetect): JSONResponse { + public function update(int $id, + bool $autoDetect, + string $accountName, + string $emailAddress, + string $password = null, + string $imapHost = null, + int $imapPort = null, + string $imapSslMode = null, + string $imapUser = null, + string $imapPassword = null, + string $smtpHost = null, + int $smtpPort = null, + string $smtpSslMode = null, + string $smtpUser = null, + string $smtpPassword = null): JSONResponse { $account = null; $errorMessage = null; try { |