mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-10 04:36:38 +00:00
always check resource session length
This commit is contained in:
@@ -387,7 +387,6 @@ export async function verifyResourceSession(
|
|||||||
|
|
||||||
if (resourceSession) {
|
if (resourceSession) {
|
||||||
// only run this check if not SSO sesion; SSO session length is checked later
|
// only run this check if not SSO sesion; SSO session length is checked later
|
||||||
if (!(resourceSessions.userSessionId && sso)) {
|
|
||||||
const accessPolicy = await enforceResourceSessionLength(
|
const accessPolicy = await enforceResourceSessionLength(
|
||||||
resourceSession,
|
resourceSession,
|
||||||
resourceData.org
|
resourceData.org
|
||||||
@@ -400,7 +399,6 @@ export async function verifyResourceSession(
|
|||||||
);
|
);
|
||||||
return notAllowed(res, redirectPath, resource.orgId);
|
return notAllowed(res, redirectPath, resource.orgId);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (pincode && resourceSession.pincodeId) {
|
if (pincode && resourceSession.pincodeId) {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
|||||||
Reference in New Issue
Block a user