remove reaming connectuser

This commit is contained in:
grafixeyehero 2019-10-28 20:44:08 +03:00
parent e7023dd51a
commit ee0b3f9ce9

View File

@ -523,10 +523,7 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory
self.clearData = function () { self.clearData = function () {
console.log("connection manager clearing data"); console.log("connection manager clearing data");
connectUser = null;
var credentials = credentialProvider.credentials(); var credentials = credentialProvider.credentials();
credentials.ConnectAccessToken = null;
credentials.ConnectUserId = null;
credentials.Servers = []; credentials.Servers = [];
credentialProvider.credentials(credentials); credentialProvider.credentials(credentials);
}; };
@ -589,7 +586,7 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory
var localUser; var localUser;
var credentials = credentialProvider.credentials(); var credentials = credentialProvider.credentials();
if (!credentials.ConnectUserId || !credentials.ConnectAccessToken || apiClient && apiClient.getCurrentUserId()) { if (apiClient && apiClient.getCurrentUserId()) {
onEnsureConnectUserDone(); onEnsureConnectUserDone();
} }
}); });