diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index cb4aa78a3..b3c069ca3 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -583,6 +583,7 @@ define([ support: Util.find(store.proxy, ['mailboxes', 'support', 'channel']), pendingFriends: store.proxy.friends_pending || {}, supportPrivateKey: Util.find(store.proxy, ['mailboxes', 'supportadmin', 'keys', 'curvePrivate']), + accountName: store.proxy.login_name || '', teams: teams, plan: account.plan } diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 144da1c61..2049fc2b5 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -423,7 +423,7 @@ define([ }; var additionalPriv = { app: parsed.type, - accountName: Utils.LocalStore.getAccountName(), + loggedIn: Utils.LocalStore.isLoggedIn(), origin: window.location.origin, pathname: window.location.pathname, fileHost: ApiConfig.fileHost, diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 1a713494c..8d04c6263 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -69,7 +69,7 @@ define([ funcs.getAppConfig = function () { return AppConfig; }; funcs.isLoggedIn = function () { - return ctx.metadataMgr.getPrivateData().accountName; + return ctx.metadataMgr.getPrivateData().loggedIn; }; // MISC diff --git a/www/filepicker/main.js b/www/filepicker/main.js index cada394ba..e63ab457c 100644 --- a/www/filepicker/main.js +++ b/www/filepicker/main.js @@ -84,7 +84,7 @@ define([ metaObj.doc = {}; var additionalPriv = { fileHost: ApiConfig.fileHost, - accountName: Utils.LocalStore.getAccountName(), + loggedIn: Utils.LocalStore.isLoggedIn(), origin: window.location.origin, pathname: window.location.pathname, feedbackAllowed: Utils.Feedback.state, diff --git a/www/share/main.js b/www/share/main.js index 28cc1a882..adbd69e05 100644 --- a/www/share/main.js +++ b/www/share/main.js @@ -86,7 +86,7 @@ define([ metaObj.doc = {}; var additionalPriv = { fileHost: ApiConfig.fileHost, - accountName: Utils.LocalStore.getAccountName(), + loggedIn: Utils.LocalStore.isLoggedIn(), origin: window.location.origin, pathname: window.location.pathname, feedbackAllowed: Utils.Feedback.state,