Merge pull request #3341 from Infisical/daniel/fix-username-capitalization

fix: remove users with capitalized usernames from projects
This commit is contained in:
Daniel Hougaard
2025-04-01 04:59:59 +04:00
committed by GitHub

View File

@@ -423,7 +423,7 @@ export const projectMembershipServiceFactory = ({
const usernamesAndEmails = [...emails, ...usernames];
const projectMembers = await projectMembershipDAL.findMembershipsByUsername(projectId, [
...new Set(usernamesAndEmails.map((element) => element.toLowerCase()))
...new Set(usernamesAndEmails.map((element) => element))
]);
if (projectMembers.length !== usernamesAndEmails.length) {