|
|
@ -84,7 +84,6 @@ var invokers = function () {
|
|
|
|
if (accessToken == null) {
|
|
|
|
if (accessToken == null) {
|
|
|
|
userModule.logout(function () {
|
|
|
|
userModule.logout(function () {
|
|
|
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
|
|
|
response.sendRedirect(devicemgtProps["appContext"] + "login");
|
|
|
|
return responseCallback({"status": 401, "responseText" : "Session expired!"});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
xmlHttpRequest.setRequestHeader(constants["AUTHORIZATION_HEADER"],
|
|
|
|
xmlHttpRequest.setRequestHeader(constants["AUTHORIZATION_HEADER"],
|
|
|
|