From 2ea3f10cb08824f5cd77f15e881bc15187ecefac Mon Sep 17 00:00:00 2001 From: Gerald Urbas <121263+geraldurbas@users.noreply.github.com> Date: Sun, 29 May 2022 20:19:06 +0200 Subject: [PATCH] Change Ordering of SASLMechanisms Want bw. Needed to change the ordering for SASL Mechanism... --- snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php index 22ec5ff61f..9c745119f1 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Smtp/SmtpClient.php @@ -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;