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:
parent
0be05349d3
commit
3617171b7c
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue