mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +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 = \SnappyMail\SASL::factory($type);
|
||||||
$SASL->base64 = true;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,6 @@ class SieveClient extends \MailSo\Net\NetClient
|
||||||
}
|
}
|
||||||
|
|
||||||
$SASL = \SnappyMail\SASL::factory($type);
|
$SASL = \SnappyMail\SASL::factory($type);
|
||||||
$SASL->base64 = true;
|
|
||||||
|
|
||||||
$bAuth = false;
|
$bAuth = false;
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,6 @@ class SmtpClient extends \MailSo\Net\NetClient
|
||||||
if ($this->Settings->authPlainLine) {
|
if ($this->Settings->authPlainLine) {
|
||||||
// https://github.com/the-djmaze/snappymail/issues/1038
|
// https://github.com/the-djmaze/snappymail/issues/1038
|
||||||
$SASL = \SnappyMail\SASL::factory('PLAIN');
|
$SASL = \SnappyMail\SASL::factory('PLAIN');
|
||||||
$SASL->base64 = true;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$sResult = $this->sendRequestWithCheck('AUTH', 235, 'PLAIN ' . $SASL->authenticate($sLogin, $sPassword));
|
$sResult = $this->sendRequestWithCheck('AUTH', 235, 'PLAIN ' . $SASL->authenticate($sLogin, $sPassword));
|
||||||
|
|
@ -150,7 +149,6 @@ class SmtpClient extends \MailSo\Net\NetClient
|
||||||
} else {
|
} else {
|
||||||
// Start authentication
|
// Start authentication
|
||||||
$SASL = \SnappyMail\SASL::factory($type);
|
$SASL = \SnappyMail\SASL::factory($type);
|
||||||
$SASL->base64 = true;
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ namespace SnappyMail;
|
||||||
|
|
||||||
abstract class SASL
|
abstract class SASL
|
||||||
{
|
{
|
||||||
public bool $base64 = false;
|
public bool $base64 = true;
|
||||||
|
|
||||||
abstract public function authenticate(string $authcid, string $passphrase, ?string $authzid = null) : string;
|
abstract public function authenticate(string $authcid, string $passphrase, ?string $authzid = null) : string;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue