removed console.log

This commit is contained in:
PxlLoewe
2025-07-19 16:05:01 -07:00
parent 68e26b18b2
commit 9eaf3a06ed
18 changed files with 37 additions and 80 deletions

View File

@@ -21,13 +21,8 @@ export const options: AuthOptions = {
where: { email: credentials.email },
});
const v1User = (oldUser as OldUser[]).find((u) => u.email === credentials.email);
console.log("V1 User", v1User?.publicId);
if (!user && v1User) {
if (bcrypt.compareSync(credentials.password, v1User.password)) {
console.log(
"v1 User Passwords match:",
bcrypt.compareSync(credentials.password, v1User.password),
);
const newUser = await createNewUserFromOld(v1User);
await sendVerificationLink(newUser.id);
return newUser;