Skip to content
Snippets Groups Projects
Commit 26df1a0f authored by Ndèye Anna Ndiaye's avatar Ndèye Anna Ndiaye Committed by Adrien Béraud
Browse files

Correction 401 error when login timeout

Change-Id: I0e96c247943bbffefb7fbe64ace8496632fcc9af
parent d6a47961
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,10 @@ function ajaxApiCall(api_path, request_type, data, credentials, callBackFunction
},
error: function (data, statusCode, jqXHR) {
callBackFunction(data, statusCode, jqXHR);
if(data.status == 401){
window.localStorage.removeItem('access_token');
window.location.replace(url_path + ":" + url_port+"/templates/signup.html");
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment