mobile-widgets: remove cloudPin() from qmlmanager

cloudPin does only have the values "" and NULL, so replace cloudPin()
with "" in csa->backend() call

remove setting of cloudPin to ""

Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2019-12-27 14:39:31 +01:00 committed by Dirk Hohndel
parent f1a48d7f79
commit e3a9166f46

View file

@ -621,8 +621,8 @@ void QMLManager::tryRetrieveDataFromBackend()
setStartPageText(tr("Testing cloud credentials"));
appendTextToLog("Have credentials, let's see if they are valid");
CloudStorageAuthenticate *csa = new CloudStorageAuthenticate(this);
csa->backend(prefs.cloud_storage_email, prefs.cloud_storage_password,
QMLPrefs::instance()->cloudPin());
csa->backend(prefs.cloud_storage_email, prefs.cloud_storage_password, "");
// let's wait here for the signal to avoid too many more nested functions
QTimer myTimer;
myTimer.setSingleShot(true);
@ -638,7 +638,6 @@ void QMLManager::tryRetrieveDataFromBackend()
return;
}
myTimer.stop();
QMLPrefs::instance()->setCloudPin("");
if (prefs.cloud_verification_status == qPrefCloudStorage::CS_INCORRECT_USER_PASSWD) {
appendTextToLog(QStringLiteral("Incorrect cloud credentials"));
setStartPageText(RED_FONT + tr("Incorrect cloud credentials") + END_FONT);