diff options
Diffstat (limited to 'src/core/provider/MCAccountValidator.cpp')
-rw-r--r-- | src/core/provider/MCAccountValidator.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; |