Skip to content

Commit

Permalink
Clarify auth method debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Mar 27, 2018
1 parent 58fa10d commit ddb8eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SMTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,14 @@ public function authenticate(
return false;
}

$this->edebug('Auth method requested: ' . ($authtype ? $authtype : 'UNKNOWN'), self::DEBUG_LOWLEVEL);
$this->edebug('Auth method requested: ' . ($authtype ? $authtype : 'UNSPECIFIED'), self::DEBUG_LOWLEVEL);
$this->edebug(
'Auth methods available on the server: ' . implode(',', $this->server_caps['AUTH']),
self::DEBUG_LOWLEVEL
);

//If we have requested a specific auth type, check the server supports it before trying others
if (!in_array($authtype, $this->server_caps['AUTH'])) {
if (null !== $authtype and !in_array($authtype, $this->server_caps['AUTH'])) {
$this->edebug('Requested auth method not available: ' . $authtype, self::DEBUG_LOWLEVEL);
$authtype = null;
}
Expand Down

0 comments on commit ddb8eeb

Please sign in to comment.