mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-21 08:05:56 +08:00
Merge pull request #423 from geraldurbas/geraldurbas-patch-1
Change Ordering of SASLMechanisms
This commit is contained in:
commit
98b49104cb
|
@ -120,7 +120,7 @@ class SmtpClient extends \MailSo\Net\NetClient
|
|||
$sPassword = $aCredentials['Password'];
|
||||
|
||||
$type = '';
|
||||
$aCredentials['SASLMechanisms'][] = 'LOGIN';
|
||||
array_unshift($aCredentials['SASLMechanisms'],'LOGIN');
|
||||
foreach ($aCredentials['SASLMechanisms'] as $sasl_type) {
|
||||
if ($this->IsAuthSupported($sasl_type) && \SnappyMail\SASL::isSupported($sasl_type)) {
|
||||
$type = $sasl_type;
|
||||
|
|
Loading…
Reference in a new issue