Merge branch '2.4' of github.com:MISP/MISP into 2.4

pull/5390/head
mokaddem 2019-11-08 13:52:38 +01:00
commit a55dad4b11
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 9 additions and 6 deletions

View File

@ -4319,13 +4319,16 @@ function queryEventLock(event_id, user_org_id) {
function checkIfLoggedIn() {
if (tabIsActive) {
$.get("/users/checkIfLoggedIn.json", function(data) {
if (data.slice(-2) !== 'OK') {
window.location.replace(baseurl + "/users/login");
}
});
$.get("/users/checkIfLoggedIn.json")
.fail(function (xhr) {
if (xhr.status === 403) {
window.location.replace(baseurl + "/users/login");
}
});
}
setTimeout(function() { checkIfLoggedIn(); }, 5000);
setTimeout(function () {
checkIfLoggedIn();
}, 5000);
}
function insertRawRestResponse() {