fix: password reset when provider is changed (#13706)

* fix: password reset when provider is changed

* chore: remove log

---------

Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
This commit is contained in:
Udit Takkar
2024-02-15 13:19:11 +00:00
committed by GitHub
co-authored by Morgan
parent 9455d14ad5
commit b5730da56d
+3 -2
View File
@@ -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(),