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>
This commit is contained in:
Dirk Hohndel 2017-10-26 09:17:22 +02:00
parent 9c4782fa5c
commit 6f20d1a208

View file

@ -59,7 +59,8 @@ void CloudStorageAuthenticate::uploadFinished()
nw->hideNotification(); nw->hideNotification();
*/ */
myLastError.clear(); myLastError.clear();
} else if (cloudAuthReply == QLatin1String("[VERIFY]")) { } else if (cloudAuthReply == QLatin1String("[VERIFY]") ||
cloudAuthReply == QLatin1String("Invalid PIN")) {
csSettings.setVerificationStatus(CS_NEED_TO_VERIFY); csSettings.setVerificationStatus(CS_NEED_TO_VERIFY);
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences"))); report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) { } else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {