fixed moodle logic

This commit is contained in:
PxlLoewe
2025-06-26 13:40:33 -07:00
parent 8968bff1c5
commit 22a406c2d1
13 changed files with 127 additions and 95 deletions

View File

@@ -5,6 +5,7 @@ import { DiscordAccount, prisma, User } from "@repo/db";
import bcrypt from "bcryptjs";
import oldUser from "./var.User.json";
import { OldUser } from "../../../../types/oldUser";
import { sendVerificationLink } from "(app)/admin/user/action";
export const options: AuthOptions = {
providers: [
@@ -69,6 +70,7 @@ export const options: AuthOptions = {
},
});
}
await sendVerificationLink(newUser.id);
return newUser;
}
}