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.
This commit is contained in:
Malte 2018-07-19 14:00:45 +00:00 committed by GitHub
parent 0be05349d3
commit 3617171b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}
}
}