From 3617171b7c78cefddc20dd2a10e3a309c1d713e9 Mon Sep 17 00:00:00 2001 From: Malte Date: Thu, 19 Jul 2018 14:00:45 +0000 Subject: [PATCH] change login names to email address rather than uid My IMAP and SMTP servers expect email address style user names, and from what I see elsewhere I would suspect these default settings to be more robust across different setups. --- lib/Hooks/UserHooks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Hooks/UserHooks.php b/lib/Hooks/UserHooks.php index 5ab60ed..ce0383b 100644 --- a/lib/Hooks/UserHooks.php +++ b/lib/Hooks/UserHooks.php @@ -86,13 +86,13 @@ class UserHooks { $account->setInboundHost($this->config->getImapHost()); $account->setInboundPort($this->config->getImapPort()); $account->setInboundSslMode($this->config->getImapSslMode()); - $account->setInboundUser($uid); + $account->setInboundUser($email); $account->setInboundPassword($this->encrypt($password)); $account->setOutboundHost($this->config->getSmtpHost()); $account->setOutboundPort($this->config->getSmtpPort()); $account->setOutboundSslMode($this->config->getSmtpSslMode()); - $account->setOutboundUser($uid); + $account->setOutboundUser($email); $account->setOutboundPassword($this->encrypt($password)); $this->accountService->save($account); @@ -181,4 +181,4 @@ class UserHooks { return $accounts[0]->getMailAccount(); } -} \ No newline at end of file +}