From 5a3c5aad08e8f3d4f59cc67e78b6db35c81b2308 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Fri, 29 Apr 2016 19:07:59 -0700 Subject: When password is nil, only retrieve the account type --- src/core/provider/MCAccountValidator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/provider/MCAccountValidator.cpp b/src/core/provider/MCAccountValidator.cpp index d35bd000..3c77e989 100644 --- a/src/core/provider/MCAccountValidator.cpp +++ b/src/core/provider/MCAccountValidator.cpp @@ -222,6 +222,12 @@ void AccountValidator::startCheckingHosts() setupServices(); } + if ((mPassword == NULL) && (mOAuth2Token == NULL)) { + // Shortcut to retrieve only the account type. + callback()->operationFinished(this); + return; + } + if (mImapServices->count() == 0) mImapError = ErrorNoValidServerFound; -- cgit v1.2.3