Skip to content

Commit

Permalink
Auth speed boost
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewiscowles1986 committed May 24, 2015
1 parent ccae718 commit cce3bbc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Fetch/Server.php
Expand Up @@ -147,11 +147,15 @@ public function __construct($serverPath, $port = 143, $service = 'imap')
*
* @param string $username
* @param string $password
* @param bool $tryFasterAuth tries to auth faster by disabling GSSAPI & NTLM auth methods (set to false if you use either of these auth methods)
*/
public function setAuthentication($username, $password)
public function setAuthentication($username, $password, $tryFasterAuth=true)
{
$this->username = $username;
$this->password = $password;
if( $tryFasterAuth ) {
$this->setParam( 'DISABLE_AUTHENTICATOR', array( 'GSSAPI', 'NTLM' ) );
}
}

/**
Expand Down

0 comments on commit cce3bbc

Please sign in to comment.