Merge pull request #3777 from akhilmhdh/feat/seq-access-request

feat: Sequentail access approval request
This commit is contained in:
Akhil Mohan
2025-06-13 16:10:17 +05:30
committed by GitHub
27 changed files with 1382 additions and 551 deletions
+3 -1
View File
@@ -106,9 +106,11 @@ export const userServiceFactory = ({
code
});
const userEmails = user?.email ? await userDAL.find({ email: user.email }) : [];
await userDAL.updateById(user.id, {
isEmailVerified: true,
username: usersByusername.length === 1 && user.email ? user.email.toLowerCase() : undefined
username: userEmails?.length === 1 && userEmails?.[0]?.id === user.id ? user.email.toLowerCase() : undefined
});
};