Faster credentials check

This commit is contained in:
Michael 2017-12-09 12:23:15 +00:00
parent 8db5b121ff
commit 0f149a691e
1 changed files with 3 additions and 1 deletions

View File

@ -270,7 +270,9 @@ class ExAuth
*/
private function checkCredentials($host, $user, $password, $ssl)
{
$url = ($ssl ? 'https' : 'http') . '://' . $host . '/api/account/verify_credentials.json';
$this->writeLog(LOG_INFO, 'external credential check for ' . $user . '@' . $host);
$url = ($ssl ? 'https' : 'http') . '://' . $host . '/api/account/verify_credentials.json?skip_status=true';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);