The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
address coderabbit feedback
Kiran K6b882e121cf5
diff --git a/apps/web/lib/actions/check-account-exists.ts b/apps/web/lib/actions/check-account-exists.tsindex 523318a2d6..290c5afd57 100644--- a/apps/web/lib/actions/check-account-exists.ts+++ b/apps/web/lib/actions/check-account-exists.ts@@ -35,7 +35,7 @@ export const checkAccountExistsAction = actionClientconst emailDomain = email.split("@")[1];const hostname = headersList.get("host");const shouldCheckSAML =- hostname && APP_HOSTNAMES.has(hostname) && !isGenericEmail(emailDomain);+ hostname && APP_HOSTNAMES.has(hostname) && !isGenericEmail(email);const [user, workspace] = await Promise.all([prisma.user.findUnique({diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.tsindex 8f2419bede..306fff7d03 100644--- a/apps/web/lib/auth/options.ts+++ b/apps/web/lib/auth/options.ts@@ -600,7 +600,7 @@ export const isSamlEnforcedForDomain = async (email: string) => {!hostname ||!emailDomain ||!APP_HOSTNAMES.has(hostname) ||- isGenericEmail(emailDomain)+ isGenericEmail(email)) {return false;}@@ -614,5 +614,9 @@ export const isSamlEnforcedForDomain = async (email: string) => {},});- return workspace?.ssoEnforcedAt ?? false;+ if (workspace?.ssoEnforcedAt) {+ return true;+ }++ return false;};