summaryrefslogtreecommitdiffstats
path: root/core/cloudstorage.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-26 09:17:22 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-26 20:44:02 +0200
commit6f20d1a2081d7b22da215d0aab293124b5ef9582 (patch)
tree3d9fd22bab7cdb088d96463fc315954c81a07b73 /core/cloudstorage.cpp
parent9c4782fa5c0eacf7ad13c649c70dab0036cafc4f (diff)
downloadsubsurface-6f20d1a2081d7b22da215d0aab293124b5ef9582.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'core/cloudstorage.cpp')
-rw-r--r--core/cloudstorage.cpp3
1 files changed, 2 insertions, 1 deletions
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]")) {