Scheduling infrastructure for absolutely everyone.
fix: password reset when provider is changed (#13706)
Udit Takkarb5730da56dd6
diff --git a/apps/web/pages/api/auth/reset-password.ts b/apps/web/pages/api/auth/reset-password.tsindex f510c96b230..5bc28e2e1f8 100644--- a/apps/web/pages/api/auth/reset-password.ts+++ b/apps/web/pages/api/auth/reset-password.ts@@ -42,8 +42,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)},data: {password: {- update: {- hash: hashedPassword,+ upsert: {+ create: { hash: hashedPassword },+ update: { hash: hashedPassword },},},emailVerified: new Date(),