Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: re-added merge user logic
Sheen Capadnganec776b94ae3b
diff --git a/backend/src/services/user/user-service.ts b/backend/src/services/user/user-service.tsindex aae32d91ff..52eaeeea18 100644--- a/backend/src/services/user/user-service.ts+++ b/backend/src/services/user/user-service.ts@@ -109,6 +109,12 @@ export const userServiceFactory = ({await userDAL.updateById(user.id, {isEmailVerified: true});++ if (usersByusername.length === 1 && user) {+ await userDAL.updateById(user.id, {+ username: user.email.toLowerCase()+ });+ }};const updateUserMfa = async ({ userId, isMfaEnabled, selectedMfaMethod }: TUpdateUserMfaDTO) => {