mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-08 03:36:37 +00:00
Fix lint
This commit is contained in:
@@ -23,7 +23,7 @@ export type CheckOrgAccessPolicyResult = {
|
|||||||
compliant: boolean;
|
compliant: boolean;
|
||||||
maxPasswordAgeDays: number;
|
maxPasswordAgeDays: number;
|
||||||
passwordAgeDays: number;
|
passwordAgeDays: number;
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -36,9 +36,6 @@ export async function enforceResourceSessionLength(
|
|||||||
|
|
||||||
export async function checkOrgAccessPolicy(
|
export async function checkOrgAccessPolicy(
|
||||||
props: CheckOrgAccessPolicyProps
|
props: CheckOrgAccessPolicyProps
|
||||||
): Promise<{
|
): Promise<CheckOrgAccessPolicyResult> {
|
||||||
success: boolean;
|
return { allowed: true };
|
||||||
error?: string;
|
|
||||||
}> {
|
|
||||||
return { success: true };
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export async function loadLoginPage(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let { resourceId, idpId, fullDomain, orgId } = parsedQuery.data;
|
const { resourceId, idpId, fullDomain, orgId } = parsedQuery.data;
|
||||||
|
|
||||||
if (resourceId) {
|
if (resourceId) {
|
||||||
const [resource] = await db
|
const [resource] = await db
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export async function getExchangeToken(
|
|||||||
|
|
||||||
// check org policy here
|
// check org policy here
|
||||||
const hasAccess = await checkOrgAccessPolicy({
|
const hasAccess = await checkOrgAccessPolicy({
|
||||||
orgId: resource[0].orgId,
|
orgId: resource.orgId,
|
||||||
userId: req.user!.userId,
|
userId: req.user!.userId,
|
||||||
session: req.session
|
session: req.session
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user