This commit is contained in:
Daniel Hougaard
2024-02-22 05:00:26 +01:00
parent ec6ec8813e
commit ed353d3263
2 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ export const orgServiceFactory = ({
};
const addGhostUser = async (orgId: string, tx?: Knex) => {
const email = `ghost-${alphaNumericNanoId(16)}-${orgId}@infisical.com`; // We add a nanoid because the email is unique. And we have to create a new ghost user each time, so we can have access to the private key.
const email = `sudo-${alphaNumericNanoId(16)}-${orgId}@infisical.com`; // We add a nanoid because the email is unique. And we have to create a new ghost user each time, so we can have access to the private key.
const password = crypto.randomBytes(128).toString("hex");
const user = await userDAL.create(