Email marketing V3

This commit is contained in:
2026-07-29 10:52:29 +02:00
parent 6fd0ed8522
commit e6fc428b15
2 changed files with 39 additions and 21 deletions

View File

@@ -35,7 +35,7 @@ export const authOptions: NextAuthOptions = {
// confirm their email, and cannot sign in before doing so.
if (!user.emailVerified) {
const pendingVerification = await db.verificationToken.findFirst({
where: { identifier: user.email, expires: { gt: new Date() } },
where: { identifier: user.email },
select: { token: true },
});
if (pendingVerification) return null;