diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-05-04 16:36:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 16:36:31 -0400 |
commit | fe95276ba849bc7a520087369eea0aaff6c92358 (patch) | |
tree | 7eaa8cca5fdd2ab7d2839e474fe3e34f468fc7a3 /webapp/store/index.js | |
parent | 1838f6c25eb95a34f7fc5892e6896b3c3e2f3673 (diff) | |
download | chat-fe95276ba849bc7a520087369eea0aaff6c92358.tar.gz chat-fe95276ba849bc7a520087369eea0aaff6c92358.tar.bz2 chat-fe95276ba849bc7a520087369eea0aaff6c92358.zip |
PLT-6492 Use new cookie to determine if user is logged in (#6317)
* Use new cookie to determine if user is logged in
* Add temporary code for 3.9 to prevent forced re-login
Diffstat (limited to 'webapp/store/index.js')
-rw-r--r-- | webapp/store/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/store/index.js b/webapp/store/index.js index 1af7127e8..521181f8c 100644 --- a/webapp/store/index.js +++ b/webapp/store/index.js @@ -77,6 +77,9 @@ export default function configureStore(initialState) { persistor.purge(); + document.cookie = 'MMUSERID=;expires=Thu, 01 Jan 1970 00:00:01 GMT;'; + window.location.href = '/'; + store.dispatch(batchActions([ { type: General.OFFLINE_STORE_RESET, @@ -84,9 +87,6 @@ export default function configureStore(initialState) { } ])); - localStorage.removeItem('currentUserId'); - window.location.href = '/'; - setTimeout(() => { purging = false; }, 500); |