summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 18:14:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-10 21:08:20 -0800
commit9d131807d75310bdbf77c5fd11555c70232a339a (patch)
tree5834fb7ec475b0cc7b36c756b2e05bb457a816c8
parent38f7fd6fbe5ebcb16caacb9466adeed232243d2c (diff)
downloadsubsurface-9d131807d75310bdbf77c5fd11555c70232a339a.tar.gz
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>
-rw-r--r--qt-mobile/qmlmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 0231e7775..d4cc89fb8 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -166,6 +166,7 @@ void QMLManager::saveCloudCredentials()
syncLoadFromCloud();
QString url;
getCloudURL(url);
+ manager()->clearAccessCache(); // remove any chached credentials
openLocalThenRemote(url);
}
}