summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/imapserverproxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/imapresource/imapserverproxy.cpp')
-rw-r--r--examples/imapresource/imapserverproxy.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/imapresource/imapserverproxy.cpp b/examples/imapresource/imapserverproxy.cpp
index 16887b1..317fbdc 100644
--- a/examples/imapresource/imapserverproxy.cpp
+++ b/examples/imapresource/imapserverproxy.cpp
@@ -139,6 +139,9 @@ ImapServerProxy::ImapServerProxy(const QString &serverUrl, int port, SessionCach
139 139
140KAsync::Job<void> ImapServerProxy::login(const QString &username, const QString &password) 140KAsync::Job<void> ImapServerProxy::login(const QString &username, const QString &password)
141{ 141{
142 if (password.isEmpty()) {
143 return KAsync::error(Imap::MissingCredentialsError);
144 }
142 if (mSessionCache) { 145 if (mSessionCache) {
143 auto session = mSessionCache->getSession(); 146 auto session = mSessionCache->getSession();
144 if (session.isValid()) { 147 if (session.isValid()) {