Fixing issue 1184 - Redirection not handled upon session expiration

revert-70aa11f8
Dileesha Rajapakse 7 years ago
parent 70ac927b16
commit 90099449d3

@ -41,7 +41,9 @@ var groupModule = {};
} else { } else {
if (!user) { if (!user) {
log.error("User object was not found in the session"); log.error("User object was not found in the session");
throw constants["ERRORS"]["USER_NOT_FOUND"]; userModule.logout(function () {
response.sendRedirect(devicemgtProps["appContext"] + "login");
});
} }
log.error("Access denied for user: " + user.username); log.error("Access denied for user: " + user.username);
return -1; return -1;

Loading…
Cancel
Save