Desktop UI: notify user if they need to enter a cloud PIN

This will need to be merged / cleaned up once the git storage fixes have
been merged.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-10-26 15:57:03 +02:00
parent e64dcd12bd
commit 405923ecfd

View file

@ -61,6 +61,7 @@ void CloudStorageAuthenticate::uploadFinished()
myLastError.clear(); myLastError.clear();
} else if (cloudAuthReply == QLatin1String("[VERIFY]")) { } else if (cloudAuthReply == QLatin1String("[VERIFY]")) {
csSettings.setVerificationStatus(CS_NEED_TO_VERIFY); csSettings.setVerificationStatus(CS_NEED_TO_VERIFY);
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) { } else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {
free(prefs.cloud_storage_password); free(prefs.cloud_storage_password);
prefs.cloud_storage_password = prefs.cloud_storage_newpassword; prefs.cloud_storage_password = prefs.cloud_storage_newpassword;