fix: change identity provider on password reset (#14326)

* fix: change identity provider on password reset

* chore: remove check
This commit is contained in:
Udit Takkar
2024-04-05 10:13:43 +00:00
committed by GitHub
parent beee545568
commit 5b6c43118e
@@ -4,6 +4,7 @@ import { z } from "zod";
import { hashPassword } from "@calcom/features/auth/lib/hashPassword";
import { validPassword } from "@calcom/features/auth/lib/validPassword";
import prisma from "@calcom/prisma";
import { IdentityProvider } from "@calcom/prisma/enums";
const passwordResetRequestSchema = z.object({
password: z.string().refine(validPassword, () => ({
@@ -48,6 +49,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
},
},
emailVerified: new Date(),
identityProvider: IdentityProvider.CAL,
identityProviderId: null,
},
});
} catch (e) {