Add comments and less debug

This commit is contained in:
Scott Idem
2026-05-19 10:55:32 -04:00
parent 128944c7ab
commit ccacdc3f4b

View File

@@ -306,11 +306,13 @@ async function verify_novi_uuid(
}
const result = await response.json();
log_lvl = 2;
// log_lvl = 2;
if (log_lvl > 1) {
console.log(`IDAA Layout: Novi API response for ${uuid}:`, result);
}
// NOTE: We are currently trusting that the pages in the Novi CMS are handling the actual current active member checks. It (Novi CMS page config) denies access to the page as a whole if they are not a member. 2026-05-19
// Build display name: prefer "First L." format, fall back to full Name field.
const first_name = result?.FirstName ?? null;
const last_initial = result?.LastName
@@ -336,6 +338,9 @@ async function verify_novi_uuid(
);
}
// Other result fields for future use:
// Role ("Regular User"), MembershipExpires, MemberStatus ("current"), CreatedDate, LastUpdatedDate, Groups ("GroupUniqueID", "GroupName", "InheritingMember", "JoinDate")
$idaa_loc.novi_uuid = uuid;
$idaa_loc.novi_email = verified_email;
$idaa_loc.novi_full_name = verified_name;