mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-23 21:36:37 +00:00
fix issues from test deploy
This commit is contained in:
@@ -139,39 +139,36 @@ export async function verifyResourceSession(
|
||||
);
|
||||
|
||||
if (resourceSession) {
|
||||
return allowed(res);
|
||||
if (pincode && resourceSession.pincodeId) {
|
||||
logger.debug(
|
||||
"Resource allowed because pincode session is valid"
|
||||
);
|
||||
return allowed(res);
|
||||
}
|
||||
|
||||
// Might not be needed
|
||||
// if (pincode && resourceSession.pincodeId) {
|
||||
// logger.debug(
|
||||
// "Resource allowed because pincode session is valid"
|
||||
// );
|
||||
// return allowed(res);
|
||||
// }
|
||||
//
|
||||
// if (password && resourceSession.passwordId) {
|
||||
// logger.debug(
|
||||
// "Resource allowed because password session is valid"
|
||||
// );
|
||||
// return allowed(res);
|
||||
// }
|
||||
//
|
||||
// if (
|
||||
// resource.emailWhitelistEnabled &&
|
||||
// resourceSession.whitelistId
|
||||
// ) {
|
||||
// logger.debug(
|
||||
// "Resource allowed because whitelist session is valid"
|
||||
// );
|
||||
// return allowed(res);
|
||||
// }
|
||||
//
|
||||
// if (resourceSession.accessTokenId) {
|
||||
// logger.debug(
|
||||
// "Resource allowed because access token session is valid"
|
||||
// );
|
||||
// return allowed(res);
|
||||
// }
|
||||
if (password && resourceSession.passwordId) {
|
||||
logger.debug(
|
||||
"Resource allowed because password session is valid"
|
||||
);
|
||||
return allowed(res);
|
||||
}
|
||||
|
||||
if (
|
||||
resource.emailWhitelistEnabled &&
|
||||
resourceSession.whitelistId
|
||||
) {
|
||||
logger.debug(
|
||||
"Resource allowed because whitelist session is valid"
|
||||
);
|
||||
return allowed(res);
|
||||
}
|
||||
|
||||
if (resourceSession.accessTokenId) {
|
||||
logger.debug(
|
||||
"Resource allowed because access token session is valid"
|
||||
);
|
||||
return allowed(res);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user