Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update send-otp.ts

Tim Wilson9f38887631c9
diff --git a/apps/web/lib/actions/send-otp.ts b/apps/web/lib/actions/send-otp.ts
index 0ee117caf3..2c60b9f4e8 100644
--- a/apps/web/lib/actions/send-otp.ts
+++ b/apps/web/lib/actions/send-otp.ts
@@ -45,6 +45,12 @@ export const sendOtpAction = actionClient
);
}
+ if (email.includes("+") && email.endsWith("@gmail.com")) {
+ throw new Error(
+ "Email addresses with + are not allowed. Please use your work email instead.",
+ );
+ }
+
const code = generateOTP();
await prisma.emailVerificationToken.deleteMany({