summaryrefslogtreecommitdiffstats
path: root/webapp/actions/global_actions.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-04 16:36:31 -0400
committerGitHub <noreply@github.com>2017-05-04 16:36:31 -0400
commitfe95276ba849bc7a520087369eea0aaff6c92358 (patch)
tree7eaa8cca5fdd2ab7d2839e474fe3e34f468fc7a3 /webapp/actions/global_actions.jsx
parent1838f6c25eb95a34f7fc5892e6896b3c3e2f3673 (diff)
downloadchat-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/actions/global_actions.jsx')
-rw-r--r--webapp/actions/global_actions.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx
index 8d3eddfd9..ed434fdc7 100644
--- a/webapp/actions/global_actions.jsx
+++ b/webapp/actions/global_actions.jsx
@@ -457,7 +457,7 @@ export function clientLogout(redirectTo = '/') {
ChannelStore.clear();
stopPeriodicStatusUpdates();
WebsocketActions.close();
- localStorage.removeItem('currentUserId');
+ document.cookie = 'MMUSERID=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
window.location.href = redirectTo;
}