From d2253a2886aa19c3b52ed2432be55f3342a06497 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Wed, 23 Dec 2015 09:58:13 -0800 Subject: PLT-1488 fixing error message from session revoke --- web/react/utils/client.jsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web') diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index a12e85f67..12596a7bf 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -246,6 +246,7 @@ export function loginByEmail(name, email, password, success, error) { data: JSON.stringify({name, email, password}), success: function onSuccess(data, textStatus, xhr) { track('api', 'api_users_login_success', data.team_id, 'email', data.email); + sessionStorage.removeItem(data.id + '_last_error'); BrowserStore.signalLogin(); success(data, textStatus, xhr); }, @@ -267,6 +268,8 @@ export function loginByLdap(teamName, id, password, success, error) { data: JSON.stringify({teamName, id, password}), success: function onSuccess(data, textStatus, xhr) { track('api', 'api_users_loginLdap_success', data.team_id, 'id', id); + sessionStorage.removeItem(data.id + '_last_error'); + BrowserStore.signalLogin(); success(data, textStatus, xhr); }, error: function onError(xhr, status, err) { -- cgit v1.2.3-1-g7c22 From 7b4e8cd12840bdba7895bf48edf4a027dcbcb468 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Wed, 23 Dec 2015 10:38:44 -0800 Subject: Fixing multi team issue --- web/templates/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/templates/head.html b/web/templates/head.html index c2c40098c..70c94e8ff 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -77,7 +77,7 @@ } console.log('detected login from a different tab'); - window.location.href = '/'; + window.location.href = '/' + window.mm_team.name; } }); }); -- cgit v1.2.3-1-g7c22