mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Resolve #73
This commit is contained in:
parent
65a302d87f
commit
f17609b442
1 changed files with 1 additions and 8 deletions
|
|
@ -161,13 +161,12 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
$this->sLogginedUser = $sLogin;
|
$this->sLogginedUser = $sLogin;
|
||||||
|
|
||||||
// $encrypted = !empty(\stream_get_meta_data($this->rConnect)['crypto']);
|
// $encrypted = !empty(\stream_get_meta_data($this->rConnect)['crypto']);
|
||||||
$type = '';
|
$type = 'LOGIN'; // RFC3501 6.2.3
|
||||||
$types = [
|
$types = [
|
||||||
// 'SCRAM-SHA-256' => 1, // !$encrypted
|
// 'SCRAM-SHA-256' => 1, // !$encrypted
|
||||||
// 'SCRAM-SHA-1' => 1, // !$encrypted
|
// 'SCRAM-SHA-1' => 1, // !$encrypted
|
||||||
'CRAM-MD5' => $bUseAuthCramMd5IfSupported,
|
'CRAM-MD5' => $bUseAuthCramMd5IfSupported,
|
||||||
'PLAIN' => $bUseAuthPlainIfSupported,
|
'PLAIN' => $bUseAuthPlainIfSupported,
|
||||||
'LOGIN' => 1 // $encrypted
|
|
||||||
];
|
];
|
||||||
foreach ($types as $sasl_type => $active) {
|
foreach ($types as $sasl_type => $active) {
|
||||||
if ($active && $this->IsSupported("AUTH={$sasl_type}") && \SnappyMail\SASL::isSupported($sasl_type)) {
|
if ($active && $this->IsSupported("AUTH={$sasl_type}") && \SnappyMail\SASL::isSupported($sasl_type)) {
|
||||||
|
|
@ -248,12 +247,6 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
$this->EscapeString($sPassword)
|
$this->EscapeString($sPassword)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// $this->writeLogException(
|
|
||||||
// new Exceptions\LoginBadMethodException,
|
|
||||||
// \MailSo\Log\Enumerations\Type::NOTICE, true);
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (0 < \strlen($sProxyAuthUser))
|
if (0 < \strlen($sProxyAuthUser))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue