Skip to content

Scheduling infrastructure for absolutely everyone.

feat: hide 'Don't have an account?' button when register=false query param is set (#26904)

Peer Richelseneb2fedf7de4b
diff --git a/apps/web/modules/auth/login-view.tsx b/apps/web/modules/auth/login-view.tsx
index 3912ee0418b..768ae060284 100644
--- a/apps/web/modules/auth/login-view.tsx
+++ b/apps/web/modules/auth/login-view.tsx
@@ -186,7 +186,7 @@ export default function Login({
? !totpEmail
? TwoFactorFooter
: ExternalTotpFooter
- : process.env.NEXT_PUBLIC_DISABLE_SIGNUP !== "true"
+ : process.env.NEXT_PUBLIC_DISABLE_SIGNUP !== "true" && searchParams?.get("register") !== "false"
? LoginFooter
: null
}>