Fixing issue 1184 - Redirection not handled upon session expiration

This commit is contained in:
Dileesha Rajapakse 2017-07-17 17:11:34 +05:30
parent 70ac927b16
commit 90099449d3

View File

@ -41,7 +41,9 @@ var groupModule = {};
} else {
if (!user) {
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);
return -1;