Merge pull request #1769 from mattermost/PLT-1488
PLT-1488 fixing error message from session revoke
Этот коммит содержится в:
@@ -246,6 +246,7 @@ export function loginByEmail(name, email, password, success, error) {
|
|||||||
data: JSON.stringify({name, email, password}),
|
data: JSON.stringify({name, email, password}),
|
||||||
success: function onSuccess(data, textStatus, xhr) {
|
success: function onSuccess(data, textStatus, xhr) {
|
||||||
track('api', 'api_users_login_success', data.team_id, 'email', data.email);
|
track('api', 'api_users_login_success', data.team_id, 'email', data.email);
|
||||||
|
sessionStorage.removeItem(data.id + '_last_error');
|
||||||
BrowserStore.signalLogin();
|
BrowserStore.signalLogin();
|
||||||
success(data, textStatus, xhr);
|
success(data, textStatus, xhr);
|
||||||
},
|
},
|
||||||
@@ -267,6 +268,8 @@ export function loginByLdap(teamName, id, password, success, error) {
|
|||||||
data: JSON.stringify({teamName, id, password}),
|
data: JSON.stringify({teamName, id, password}),
|
||||||
success: function onSuccess(data, textStatus, xhr) {
|
success: function onSuccess(data, textStatus, xhr) {
|
||||||
track('api', 'api_users_loginLdap_success', data.team_id, 'id', id);
|
track('api', 'api_users_loginLdap_success', data.team_id, 'id', id);
|
||||||
|
sessionStorage.removeItem(data.id + '_last_error');
|
||||||
|
BrowserStore.signalLogin();
|
||||||
success(data, textStatus, xhr);
|
success(data, textStatus, xhr);
|
||||||
},
|
},
|
||||||
error: function onError(xhr, status, err) {
|
error: function onError(xhr, status, err) {
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('detected login from a different tab');
|
console.log('detected login from a different tab');
|
||||||
window.location.href = '/';
|
window.location.href = '/' + window.mm_team.name;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user