Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: put turnstile below button

Brad Barbin6c3837caa00d
diff --git a/apps/erp/app/routes/_public+/login.tsx b/apps/erp/app/routes/_public+/login.tsx
index e4e9e0698b..f3cd361ce2 100644
--- a/apps/erp/app/routes/_public+/login.tsx
+++ b/apps/erp/app/routes/_public+/login.tsx
@@ -245,19 +245,6 @@ export default function LoginRoute() {
)}
<Input name="email" label="" placeholder="Email Address" />
- {CarbonEdition === Edition.Cloud && (
- <div className="w-full flex justify-center">
- <Turnstile
- siteKey={CLOUDFLARE_TURNSTILE_SITE_KEY}
- onSuccess={(token) => setTurnstileToken(token)}
- onError={() => setTurnstileToken("")}
- onExpire={() => setTurnstileToken("")}
- options={{
- theme: theme === "dark" ? "dark" : "light",
- }}
- />
- </div>
- )}
<Submit
isDisabled={
@@ -271,6 +258,19 @@ export default function LoginRoute() {
>
Continue with Email
</Submit>
+ {CarbonEdition === Edition.Cloud && (
+ <div className="w-full flex justify-center">
+ <Turnstile
+ siteKey={CLOUDFLARE_TURNSTILE_SITE_KEY}
+ onSuccess={(token) => setTurnstileToken(token)}
+ onError={() => setTurnstileToken("")}
+ onExpire={() => setTurnstileToken("")}
+ options={{
+ theme: theme === "dark" ? "dark" : "light",
+ }}
+ />
+ </div>
+ )}
<Separator />
<Button
type="button"