From ee0b3f9ce9c45d0d5dbe770c49e6d029ac3bb0a8 Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Mon, 28 Oct 2019 20:44:08 +0300 Subject: [PATCH] remove reaming connectuser --- src/bower_components/apiclient/connectionmanager.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bower_components/apiclient/connectionmanager.js b/src/bower_components/apiclient/connectionmanager.js index 553c11900d..afd72e451e 100644 --- a/src/bower_components/apiclient/connectionmanager.js +++ b/src/bower_components/apiclient/connectionmanager.js @@ -523,10 +523,7 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory self.clearData = function () { console.log("connection manager clearing data"); - connectUser = null; var credentials = credentialProvider.credentials(); - credentials.ConnectAccessToken = null; - credentials.ConnectUserId = null; credentials.Servers = []; credentialProvider.credentials(credentials); }; @@ -589,7 +586,7 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory var localUser; var credentials = credentialProvider.credentials(); - if (!credentials.ConnectUserId || !credentials.ConnectAccessToken || apiClient && apiClient.getCurrentUserId()) { + if (apiClient && apiClient.getCurrentUserId()) { onEnsureConnectUserDone(); } });