Fix isLoggedIn issue

pull/1/head
yflory 5 years ago
parent c26560e3f9
commit 60862d9f87

@ -583,6 +583,7 @@ define([
support: Util.find(store.proxy, ['mailboxes', 'support', 'channel']), support: Util.find(store.proxy, ['mailboxes', 'support', 'channel']),
pendingFriends: store.proxy.friends_pending || {}, pendingFriends: store.proxy.friends_pending || {},
supportPrivateKey: Util.find(store.proxy, ['mailboxes', 'supportadmin', 'keys', 'curvePrivate']), supportPrivateKey: Util.find(store.proxy, ['mailboxes', 'supportadmin', 'keys', 'curvePrivate']),
accountName: store.proxy.login_name || '',
teams: teams, teams: teams,
plan: account.plan plan: account.plan
} }

@ -423,7 +423,7 @@ define([
}; };
var additionalPriv = { var additionalPriv = {
app: parsed.type, app: parsed.type,
accountName: Utils.LocalStore.getAccountName(), loggedIn: Utils.LocalStore.isLoggedIn(),
origin: window.location.origin, origin: window.location.origin,
pathname: window.location.pathname, pathname: window.location.pathname,
fileHost: ApiConfig.fileHost, fileHost: ApiConfig.fileHost,

@ -69,7 +69,7 @@ define([
funcs.getAppConfig = function () { return AppConfig; }; funcs.getAppConfig = function () { return AppConfig; };
funcs.isLoggedIn = function () { funcs.isLoggedIn = function () {
return ctx.metadataMgr.getPrivateData().accountName; return ctx.metadataMgr.getPrivateData().loggedIn;
}; };
// MISC // MISC

@ -84,7 +84,7 @@ define([
metaObj.doc = {}; metaObj.doc = {};
var additionalPriv = { var additionalPriv = {
fileHost: ApiConfig.fileHost, fileHost: ApiConfig.fileHost,
accountName: Utils.LocalStore.getAccountName(), loggedIn: Utils.LocalStore.isLoggedIn(),
origin: window.location.origin, origin: window.location.origin,
pathname: window.location.pathname, pathname: window.location.pathname,
feedbackAllowed: Utils.Feedback.state, feedbackAllowed: Utils.Feedback.state,

@ -86,7 +86,7 @@ define([
metaObj.doc = {}; metaObj.doc = {};
var additionalPriv = { var additionalPriv = {
fileHost: ApiConfig.fileHost, fileHost: ApiConfig.fileHost,
accountName: Utils.LocalStore.getAccountName(), loggedIn: Utils.LocalStore.isLoggedIn(),
origin: window.location.origin, origin: window.location.origin,
pathname: window.location.pathname, pathname: window.location.pathname,
feedbackAllowed: Utils.Feedback.state, feedbackAllowed: Utils.Feedback.state,

Loading…
Cancel
Save