mobile/cleanup: remove outdated comment and fix whitespace

We haven't supported the GPS web service for a long time.

Also, add another message for the log to be able to more easily trace
one error case.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-04-04 14:10:19 -07:00
parent 1de56d468f
commit 46032af320

View file

@ -504,7 +504,6 @@ void QMLManager::finishSetup()
// Initialize cloud credentials. // Initialize cloud credentials.
git_local_only = !prefs.cloud_auto_sync; git_local_only = !prefs.cloud_auto_sync;
// if the cloud credentials are valid, we should get the GPS Webservice ID as well
QString url; QString url;
if (!qPrefCloudStorage::cloud_storage_email().isEmpty() && if (!qPrefCloudStorage::cloud_storage_email().isEmpty() &&
!qPrefCloudStorage::cloud_storage_password().isEmpty() && !qPrefCloudStorage::cloud_storage_password().isEmpty() &&
@ -589,10 +588,10 @@ void QMLManager::saveCloudCredentials(const QString &newEmail, const QString &ne
qPrefCloudStorage::set_cloud_verification_status(m_oldStatus); qPrefCloudStorage::set_cloud_verification_status(m_oldStatus);
} }
if (!noCloud && if (!noCloud && !verifyCredentials(newEmail, newPassword, pin)) {
!verifyCredentials(newEmail, newPassword, pin)) appendTextToLog("saveCloudCredentials: given cloud credentials didn't verify");
return; return;
}
qPrefCloudStorage::set_cloud_storage_email(newEmail); qPrefCloudStorage::set_cloud_storage_email(newEmail);
qPrefCloudStorage::set_cloud_storage_password(newPassword); qPrefCloudStorage::set_cloud_storage_password(newPassword);