Email marketing V3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user