From 957f6bd5021a1ed1543e5ac518948985c7098871 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 30 Nov 2018 12:21:44 -0800 Subject: [PATCH] Reverting #2060 to fix SAML login. (#2116) --- actions/views/root.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/actions/views/root.js b/actions/views/root.js index 778296229..12a445918 100644 --- a/actions/views/root.js +++ b/actions/views/root.js @@ -5,8 +5,6 @@ import {getClientConfig, getLicenseConfig} from 'mattermost-redux/actions/genera import * as UserActions from 'mattermost-redux/actions/users'; import {Client4} from 'mattermost-redux/client'; -import LocalStorageStore from 'stores/local_storage_store'; - import {ActionTypes} from 'utils/constants'; export function loadMeAndConfig() { @@ -17,7 +15,7 @@ export function loadMeAndConfig() { dispatch(getLicenseConfig()), ]; - if (document.cookie.indexOf('MMUSERID=') > -1 && LocalStorageStore.getWasLoggedIn()) { + if (document.cookie.indexOf('MMUSERID=') > -1) { promises.push(dispatch(UserActions.loadMe())); } -- GitLab