[PR #589] [MERGED] Replace reCAPTCHA with Turnstile #838

Closed
opened 2026-02-04 18:54:48 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/589
Author: @Boy132
Created: 9/27/2024
Status: Merged
Merged: 11/2/2024
Merged by: @notAreYouScared

Base: mainHead: feature/turnstile


📝 Commits (9)

  • 6a4a5b8 add laravel turnstile
  • 96374c3 add config & settings for turnstile
  • 6273cf9 publish view to center captcha
  • cf27ac8 Merge branch 'main' into feature/turnstile
  • 6ba139d completely replace reCAPTCHA
  • c8bfb98 update FailedCaptcha event
  • 455c4b6 add back config for domain verification
  • d102259 Merge branch 'pelican-dev:main' into feature/turnstile
  • ea0ede9 don't set language so browser lang is used

📊 Changes

17 files changed (+372 additions, -136 deletions)

View changed files

📝 app/Events/Auth/FailedCaptcha.php (+1 -1)
app/Filament/Pages/Auth/Login.php (+36 -0)
📝 app/Filament/Pages/Settings.php (+35 -20)
📝 app/Http/Middleware/VerifyReCaptcha.php (+12 -22)
📝 app/Http/ViewComposers/AssetComposer.php (+2 -2)
📝 app/Providers/Filament/AdminPanelProvider.php (+2 -1)
📝 composer.json (+1 -0)
📝 composer.lock (+154 -1)
config/recaptcha.php (+0 -31)
config/turnstile.php (+15 -0)
📝 package.json (+1 -1)
📝 resources/scripts/api/auth/login.ts (+1 -1)
📝 resources/scripts/api/auth/requestPasswordResetEmail.ts (+1 -1)
📝 resources/scripts/components/auth/ForgotPasswordContainer.tsx (+25 -25)
📝 resources/scripts/components/auth/LoginContainer.tsx (+25 -25)
resources/views/vendor/turnstile/components/turnstile.blade.php (+56 -0)
📝 yarn.lock (+5 -5)

📄 Description

Replaces reCAPTCHA with Turnstile, on both the old auth pages and the new ones.
Note: the captcha is disabled by default because there are not default keys!

Closes #588

Filament auth:
grafik

Legacy auth:
grafik

Settings:
grafik


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/589 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 9/27/2024 **Status:** ✅ Merged **Merged:** 11/2/2024 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `feature/turnstile` --- ### 📝 Commits (9) - [`6a4a5b8`](https://github.com/pelican-dev/panel/commit/6a4a5b88bf9824eb925d815b54374e4fbe2d7d10) add laravel turnstile - [`96374c3`](https://github.com/pelican-dev/panel/commit/96374c39fed0b0e55e3e345a625920de1809c795) add config & settings for turnstile - [`6273cf9`](https://github.com/pelican-dev/panel/commit/6273cf9d914af55da8e08b3ff851cddd6ae47ae6) publish view to center captcha - [`cf27ac8`](https://github.com/pelican-dev/panel/commit/cf27ac82e0a083889d262df5997170cfc10a8e47) Merge branch 'main' into feature/turnstile - [`6ba139d`](https://github.com/pelican-dev/panel/commit/6ba139d26532cb4abb862d863e3082b6e78149af) completely replace reCAPTCHA - [`c8bfb98`](https://github.com/pelican-dev/panel/commit/c8bfb98787190af0a5c06c32d8a4aac9a4f0c643) update FailedCaptcha event - [`455c4b6`](https://github.com/pelican-dev/panel/commit/455c4b6ab7e97e2a13f7676abc59361ddc39950e) add back config for domain verification - [`d102259`](https://github.com/pelican-dev/panel/commit/d1022594b17b5ae019b732b8ac40e0fb3fae8762) Merge branch 'pelican-dev:main' into feature/turnstile - [`ea0ede9`](https://github.com/pelican-dev/panel/commit/ea0ede96caa86819a597e2fe35f50d15d866512a) don't set language so browser lang is used ### 📊 Changes **17 files changed** (+372 additions, -136 deletions) <details> <summary>View changed files</summary> 📝 `app/Events/Auth/FailedCaptcha.php` (+1 -1) ➕ `app/Filament/Pages/Auth/Login.php` (+36 -0) 📝 `app/Filament/Pages/Settings.php` (+35 -20) 📝 `app/Http/Middleware/VerifyReCaptcha.php` (+12 -22) 📝 `app/Http/ViewComposers/AssetComposer.php` (+2 -2) 📝 `app/Providers/Filament/AdminPanelProvider.php` (+2 -1) 📝 `composer.json` (+1 -0) 📝 `composer.lock` (+154 -1) ➖ `config/recaptcha.php` (+0 -31) ➕ `config/turnstile.php` (+15 -0) 📝 `package.json` (+1 -1) 📝 `resources/scripts/api/auth/login.ts` (+1 -1) 📝 `resources/scripts/api/auth/requestPasswordResetEmail.ts` (+1 -1) 📝 `resources/scripts/components/auth/ForgotPasswordContainer.tsx` (+25 -25) 📝 `resources/scripts/components/auth/LoginContainer.tsx` (+25 -25) ➕ `resources/views/vendor/turnstile/components/turnstile.blade.php` (+56 -0) 📝 `yarn.lock` (+5 -5) </details> ### 📄 Description Replaces reCAPTCHA with Turnstile, on both the old auth pages and the new ones. Note: the captcha is _disabled_ by default because there are not default keys! Closes #588 Filament auth: ![grafik](https://github.com/user-attachments/assets/c0d28988-accf-4031-93df-5a97eee5f762) Legacy auth: ![grafik](https://github.com/user-attachments/assets/748b99b0-6c18-481f-a958-94881ad51025) Settings: ![grafik](https://github.com/user-attachments/assets/21a6237e-93de-4d37-9b3b-28fe689967e8) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 18:54:48 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#838