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

* fix: password reset when provider is changed

* chore: remove log

---------

Co-authored-by: Morgan <[email protected]>
This commit is contained in:
Udit TakkarandMorgan authored and GitHub committed 2024-02-15 13:19:11 +00:00
1 parent 9455d14ad5
commit b5730da56d
1 file changed
+3 -2
+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(),