Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(cloud): disable sign-in until captcha passed (#1634)

Marc Klingenfc453e1c5f2d
diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsx
index a1919f82de..b16226bf0e 100644
--- a/web/src/pages/auth/sign-in.tsx
+++ b/web/src/pages/auth/sign-in.tsx
@@ -255,6 +255,10 @@ export default function SignIn({ authProviders }: PageProps) {
type="submit"
className="w-full"
loading={credentialsForm.formState.isSubmitting}
+ disabled={
+ env.NEXT_PUBLIC_TURNSTILE_SITE_KEY !== undefined &&
+ turnstileToken === undefined
+ }
>
Sign in
</Button>