mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing issue 1184 - Redirection not handled upon session expiration
This commit is contained in:
parent
70ac927b16
commit
90099449d3
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user