Skip to content

Commit

Permalink
Merge pull request #423 from geraldurbas/geraldurbas-patch-1
Browse files Browse the repository at this point in the history
Change Ordering of SASLMechanisms
  • Loading branch information
the-djmaze committed May 30, 2022
2 parents 5cc738e + 2ea3f10 commit 98b4910
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function Login(array $aCredentials) : self
$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;
Expand Down

0 comments on commit 98b4910

Please sign in to comment.