From 6f20d1a2081d7b22da215d0aab293124b5ef9582 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 26 Oct 2017 09:17:22 +0200 Subject: cloudstorage: handle invalid PIN correctly If the server tells us that the PIN is invalid, we need to continue to ask for a PIN. Signed-off-by: Dirk Hohndel --- core/cloudstorage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/cloudstorage.cpp') diff --git a/core/cloudstorage.cpp b/core/cloudstorage.cpp index 46888e2b2..5a1f2b06a 100644 --- a/core/cloudstorage.cpp +++ b/core/cloudstorage.cpp @@ -59,7 +59,8 @@ void CloudStorageAuthenticate::uploadFinished() nw->hideNotification(); */ myLastError.clear(); - } else if (cloudAuthReply == QLatin1String("[VERIFY]")) { + } else if (cloudAuthReply == QLatin1String("[VERIFY]") || + cloudAuthReply == QLatin1String("Invalid PIN")) { csSettings.setVerificationStatus(CS_NEED_TO_VERIFY); report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences"))); } else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) { -- cgit v1.2.3-70-g09d2