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);