QML-UI: more log message when retrieving web user id
At least one tester cannot retrieve their web user id. This should help us collect more data and figure out why this fails. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b9cd6bf38e
commit
41c59c1c8d
@ -196,8 +196,14 @@ void QMLManager::retrieveUserid()
|
||||
return;
|
||||
}
|
||||
QString userid(prefs.userid);
|
||||
if (userid.isEmpty())
|
||||
if (userid.isEmpty()) {
|
||||
if (same_string(prefs.cloud_storage_email, "") || same_string(prefs.cloud_storage_password, "")) {
|
||||
appendTextToLog("cloud user name or password are empty, can't retrieve web user id");
|
||||
return;
|
||||
}
|
||||
appendTextToLog(QString("calling getUserid with user %1").arg(prefs.cloud_storage_email));
|
||||
userid = locationProvider->getUserid(prefs.cloud_storage_email, prefs.cloud_storage_password);
|
||||
}
|
||||
if (!userid.isEmpty()) {
|
||||
// overwrite the existing userid
|
||||
free(prefs.userid);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user