The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
chore(auth): remove commented account creation code (#3344)
Ephraim Duncanc5acba538e52
diff --git a/packages/lib/server-only/user/create-user.ts b/packages/lib/server-only/user/create-user.tsindex 35b48bfe7..e42c7b773 100644--- a/packages/lib/server-only/user/create-user.ts+++ b/packages/lib/server-only/user/create-user.ts@@ -35,33 +35,6 @@ export const createUser = async ({ name, email, password, signature }: CreateUse},});- // Todo: (RR7) Migrate to use this after RR7.- // Note: If we actually ever proceed with this, there are multiple- // locations where we will need to update this.- // const user = await prisma.$transaction(async (tx) => {- // const user = await tx.user.create({- // data: {- // name,- // email: email.toLowerCase(),- // password: hashedPassword, // Todo: (RR7) Drop password.- // signature,- // },- // });-- // await tx.account.create({- // data: {- // userId: user.id,- // type: 'emailPassword', // Todo: (RR7)- // provider: 'DOCUMENSO', // Todo: (RR7) Enums- // providerAccountId: user.id.toString(),- // password: hashedPassword,- // },- // });-- // return user;- // });-- // Not used at the moment, uncomment if required.await onCreateUserHook(user).catch((err) => {// Todo: (RR7) Add logging.console.error(err);