mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
SASL always base64 by default
This commit is contained in:
parent
7105e23781
commit
30c95ac04e
4 changed files with 1 additions and 5 deletions
|
|
@ -146,7 +146,6 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
}
|
||||
|
||||
$SASL = \SnappyMail\SASL::factory($type);
|
||||
$SASL->base64 = true;
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
|
|
@ -107,7 +107,6 @@ class SieveClient extends \MailSo\Net\NetClient
|
|||
}
|
||||
|
||||
$SASL = \SnappyMail\SASL::factory($type);
|
||||
$SASL->base64 = true;
|
||||
|
||||
$bAuth = false;
|
||||
try
|
||||
|
|
|
|||
|
|
@ -136,7 +136,6 @@ class SmtpClient extends \MailSo\Net\NetClient
|
|||
if ($this->Settings->authPlainLine) {
|
||||
// https://github.com/the-djmaze/snappymail/issues/1038
|
||||
$SASL = \SnappyMail\SASL::factory('PLAIN');
|
||||
$SASL->base64 = true;
|
||||
try
|
||||
{
|
||||
$sResult = $this->sendRequestWithCheck('AUTH', 235, 'PLAIN ' . $SASL->authenticate($sLogin, $sPassword));
|
||||
|
|
@ -150,7 +149,6 @@ class SmtpClient extends \MailSo\Net\NetClient
|
|||
} else {
|
||||
// Start authentication
|
||||
$SASL = \SnappyMail\SASL::factory($type);
|
||||
$SASL->base64 = true;
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace SnappyMail;
|
|||
|
||||
abstract class SASL
|
||||
{
|
||||
public bool $base64 = false;
|
||||
public bool $base64 = true;
|
||||
|
||||
abstract public function authenticate(string $authcid, string $passphrase, ?string $authzid = null) : string;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue