From 0f149a691e4059e3faf20937b471a0d5b3d363d7 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Dec 2017 12:23:15 +0000 Subject: [PATCH] Faster credentials check --- src/Util/ExAuth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Util/ExAuth.php b/src/Util/ExAuth.php index c68cd41166..973969678b 100644 --- a/src/Util/ExAuth.php +++ b/src/Util/ExAuth.php @@ -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);