mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Bugfix SCRAM auth response #1575
This commit is contained in:
parent
6cafd65690
commit
34f5f83978
|
@ -17,6 +17,18 @@ namespace MailSo\Smtp;
|
|||
use MailSo\Net\Enumerations\ConnectionSecurityType;
|
||||
use SnappyMail\IDN;
|
||||
|
||||
/**
|
||||
response codes:
|
||||
220 ready
|
||||
221 Closing
|
||||
235 Authentication succeeded
|
||||
250 Requested mail action okay, completed
|
||||
251 User not local; will forward
|
||||
252 Cannot verify the user, but it will try to deliver the message anyway
|
||||
334 Server challenge (the text part contains the Base64-encoded challenge)
|
||||
354 Start mail input
|
||||
*/
|
||||
|
||||
/**
|
||||
* @category MailSo
|
||||
* @package Smtp
|
||||
|
@ -183,7 +195,7 @@ class SmtpClient extends \MailSo\Net\NetClient
|
|||
// RFC 5802
|
||||
$sRequest = $SASL->authenticate($sLogin, $sPassword, $sResult);
|
||||
$this->logMask($sRequest);
|
||||
$sResult = $this->sendRequestWithCheck($sRequest, 234);
|
||||
$sResult = $this->sendRequestWithCheck($sRequest, 334);
|
||||
$sRequest = $SASL->challenge($sResult);
|
||||
} else switch ($type) {
|
||||
// RFC 4616
|
||||
|
|
Loading…
Reference in a new issue