From d9a378e4636c6470e84eec5e7c728fe97751ffb5 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 19 Oct 2025 05:19:00 +0000 Subject: [PATCH] Inject OrgLogin component implementation cgen-5fb338d4190b4150b26e794ae605d024 --- client/pages/Login.tsx | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/client/pages/Login.tsx b/client/pages/Login.tsx index 7870a9c6..5942be5f 100644 --- a/client/pages/Login.tsx +++ b/client/pages/Login.tsx @@ -39,6 +39,77 @@ import { DialogClose, } from "@/components/ui/dialog"; +function OrgLogin() { + const [email, setEmail] = useState(""); + const [sending, setSending] = useState(false); + const [sent, setSent] = useState(null); + const [error, setError] = useState(null); + const isValid = /@aethex\.dev$/i.test(email); + return ( +
+
+
Aethex Login (org)
+ @aethex.dev +
+ {sent ? ( + + Check your inbox + + We sent a magic link to {email}. If email isn’t configured, a manual link is shown below. + + {sent.startsWith("http") && ( +

{sent}

+ )} +
+ ) : null} + {error ? ( + + Request failed + {error} + + ) : null} +
+
+ setEmail(e.target.value)} + /> +
+ +
+
+ ); +} + export default function Login() { const [isLoading, setIsLoading] = useState(false); const [isSignUp, setIsSignUp] = useState(false);