removed console.log
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user