From de443c5ea14d212a824b3c61c2c68471ba0c415d Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Thu, 8 May 2025 23:20:18 +0400 Subject: [PATCH] fix: requested changes --- backend/src/server/routes/v1/identity-ldap-auth-router.ts | 2 +- .../components/IdentitySection/IdentityLdapAuthForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/server/routes/v1/identity-ldap-auth-router.ts b/backend/src/server/routes/v1/identity-ldap-auth-router.ts index ec3b64592..0d764425a 100644 --- a/backend/src/server/routes/v1/identity-ldap-auth-router.ts +++ b/backend/src/server/routes/v1/identity-ldap-auth-router.ts @@ -148,7 +148,7 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider) }, handler: async (req) => { - if (!req.passportMachineIdentity?.identityId || !req.passportMachineIdentity.user.uid) { + if (!req.passportMachineIdentity?.identityId) { throw new UnauthorizedError({ message: "Invalid request. Missing identity ID or LDAP entry details." }); } diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx index e2dbc8b28..62080bfd1 100644 --- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx +++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityLdapAuthForm.tsx @@ -446,7 +446,7 @@ export const IdentityLdapAuthForm = ({ leftIcon={} size="xs" > - Add Allowed Field + Add Required Attribute