feat: hide 'Don't have an account?' button when register=false query param is set (#26904)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
77c8e34073
commit
eb2fedf7de
1 file changed
+1
-1
@@ -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
|
||||
}>
|
||||
|
||||
Reference in new issue
Block a user