Skip to content

Commit 8b3a741

Browse files
authored
refactor(turnstile): Remove turnstile (#11387)
This PR removes turnstile from the platform. #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: <!-- Put your test plan here: --> - [x] Test to make sure that turnstile is gone, it will be. - [x] Test logging in with out turnstile to make sure it still works - [x] Test registering a new account with out turnstile and it works
1 parent 7c48598 commit 8b3a741

File tree

23 files changed

+15
-994
lines changed

23 files changed

+15
-994
lines changed

autogpt_platform/backend/.env.default

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,6 @@ POSTMARK_WEBHOOK_TOKEN=
134134
# Error Tracking
135135
SENTRY_DSN=
136136

137-
# Cloudflare Turnstile (CAPTCHA) Configuration
138-
# Get these from the Cloudflare Turnstile dashboard: https://dash.cloudflare.com/?to=/:account/turnstile
139-
# This is the backend secret key
140-
TURNSTILE_SECRET_KEY=
141-
# This is the verify URL
142-
TURNSTILE_VERIFY_URL=https://challenges.cloudflare.com/turnstile/v0/siteverify
143-
144137
# Feature Flags
145138
LAUNCH_DARKLY_SDK_KEY=
146139

autogpt_platform/backend/backend/server/rest_api.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import backend.server.v2.otto.routes
3636
import backend.server.v2.store.model
3737
import backend.server.v2.store.routes
38-
import backend.server.v2.turnstile.routes
3938
import backend.util.service
4039
import backend.util.settings
4140
from backend.blocks.llm import LlmModel
@@ -281,11 +280,6 @@ async def validation_error_handler(
281280
app.include_router(
282281
backend.server.v2.otto.routes.router, tags=["v2", "otto"], prefix="/api/otto"
283282
)
284-
app.include_router(
285-
backend.server.v2.turnstile.routes.router,
286-
tags=["v2", "turnstile"],
287-
prefix="/api/turnstile",
288-
)
289283

290284
app.include_router(
291285
backend.server.routers.postmark.postmark.router,

autogpt_platform/backend/backend/server/v2/turnstile/__init__.py

Whitespace-only changes.

autogpt_platform/backend/backend/server/v2/turnstile/models.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

autogpt_platform/backend/backend/server/v2/turnstile/routes.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

autogpt_platform/backend/backend/server/v2/turnstile/routes_test.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

autogpt_platform/backend/backend/util/settings.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -537,16 +537,6 @@ class Secrets(UpdateTrackingModel["Secrets"], BaseSettings):
537537
description="The secret key to use for the unsubscribe user by token",
538538
)
539539

540-
# Cloudflare Turnstile credentials
541-
turnstile_secret_key: str = Field(
542-
default="",
543-
description="Cloudflare Turnstile backend secret key",
544-
)
545-
turnstile_verify_url: str = Field(
546-
default="https://challenges.cloudflare.com/turnstile/v0/siteverify",
547-
description="Cloudflare Turnstile verify URL",
548-
)
549-
550540
# OAuth server credentials for integrations
551541
# --8<-- [start:OAuthServerCredentialsExample]
552542
github_client_id: str = Field(default="", description="GitHub OAuth client ID")

autogpt_platform/frontend/.env.default

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
NEXT_PUBLIC_LAUNCHDARKLY_ENABLED=false
1212
NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_ID=687ab1372f497809b131e06e
1313

14-
NEXT_PUBLIC_TURNSTILE=disabled
1514
NEXT_PUBLIC_REACT_QUERY_DEVTOOL=true
1615

1716
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-FH2XK2W4GN

autogpt_platform/frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"dependencies": {
3131
"@faker-js/faker": "10.0.0",
3232
"@hookform/resolvers": "5.2.2",
33-
"@marsidev/react-turnstile": "1.3.1",
3433
"@next/third-parties": "15.4.6",
3534
"@phosphor-icons/react": "2.1.10",
3635
"@radix-ui/react-alert-dialog": "1.1.15",

autogpt_platform/frontend/pnpm-lock.yaml

Lines changed: 5 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)