Reset the authentication cache when trying new credentials

Otherwise Qt attempts to be smart and re-uses previously successful
username (email) and password. This is an odd corner case, but it seems
the right thing to do.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-10 18:14:09 -08:00
parent 38f7fd6fbe
commit 9d131807d7

View file

@ -166,6 +166,7 @@ void QMLManager::saveCloudCredentials()
syncLoadFromCloud();
QString url;
getCloudURL(url);
manager()->clearAccessCache(); // remove any chached credentials
openLocalThenRemote(url);
}
}