[PR #1068] [MERGED] Refactor captcha #1155

Closed
opened 2026-02-04 19:22:06 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1068
Author: @Boy132
Created: 3/8/2025
Status: Merged
Merged: 3/15/2025
Merged by: @notAreYouScared

Base: mainHead: boy132/refactor-captcha


📝 Commits (8)

📊 Changes

16 files changed (+395 additions, -301 deletions)

View changed files

app/Extensions/Captcha/Providers/CaptchaProvider.php (+118 -0)
app/Extensions/Captcha/Providers/TurnstileProvider.php (+106 -0)
📝 app/Filament/Admin/Pages/Settings.php (+44 -43)
app/Filament/Components/Forms/Fields/TurnstileCaptcha.php (+26 -0)
📝 app/Filament/Pages/Auth/Login.php (+25 -14)
app/Http/Middleware/VerifyCaptcha.php (+39 -0)
app/Http/Middleware/VerifyReCaptcha.php (+0 -52)
📝 app/Providers/AppServiceProvider.php (+4 -0)
app/Rules/ValidTurnstileCaptcha.php (+19 -0)
📝 bootstrap/app.php (+1 -1)
📝 composer.json (+0 -1)
📝 composer.lock (+1 -154)
config/turnstile.php (+0 -15)
📝 lang/en/admin/setting.php (+3 -2)
📝 phpstan.neon (+1 -0)
📝 resources/views/filament/components/turnstile-captcha.blade.php (+8 -19)

📄 Description

Adds a similar system like oauth for captacha. Allows to create additional captcha providers.
Removes coderflexx/filament-turnstile.


🔄 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/1068 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 3/8/2025 **Status:** ✅ Merged **Merged:** 3/15/2025 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `boy132/refactor-captcha` --- ### 📝 Commits (8) - [`7d72892`](https://github.com/pelican-dev/panel/commit/7d72892e45fc790f9206755e34107172bbb9cbdf) refactor captcha - [`1b03cab`](https://github.com/pelican-dev/panel/commit/1b03cabf8311b2bcd1e2b7574c5bb6cc4238448b) add default error message - [`5f94afb`](https://github.com/pelican-dev/panel/commit/5f94afb8de329bf70f6aa19e0676c2e2b89f6084) prevent rule from being called multiple times - [`b9c7e55`](https://github.com/pelican-dev/panel/commit/b9c7e55aabb3988516ac395befe58d1f8d105872) fixes - [`b5e623a`](https://github.com/pelican-dev/panel/commit/b5e623aac63deace07605888d02cdc06a24fe1a8) use config - [`dff7ba5`](https://github.com/pelican-dev/panel/commit/dff7ba506152d8bf000fd6c23401effe96a06881) Update this to latest - [`7408e97`](https://github.com/pelican-dev/panel/commit/7408e97d58530725ef81f09386ea80b4d14aa123) Merge branch 'main' into boy132/refactor-captcha - [`3773346`](https://github.com/pelican-dev/panel/commit/3773346ee298530345e10a53f5f502476b875d56) Remove this ### 📊 Changes **16 files changed** (+395 additions, -301 deletions) <details> <summary>View changed files</summary> ➕ `app/Extensions/Captcha/Providers/CaptchaProvider.php` (+118 -0) ➕ `app/Extensions/Captcha/Providers/TurnstileProvider.php` (+106 -0) 📝 `app/Filament/Admin/Pages/Settings.php` (+44 -43) ➕ `app/Filament/Components/Forms/Fields/TurnstileCaptcha.php` (+26 -0) 📝 `app/Filament/Pages/Auth/Login.php` (+25 -14) ➕ `app/Http/Middleware/VerifyCaptcha.php` (+39 -0) ➖ `app/Http/Middleware/VerifyReCaptcha.php` (+0 -52) 📝 `app/Providers/AppServiceProvider.php` (+4 -0) ➕ `app/Rules/ValidTurnstileCaptcha.php` (+19 -0) 📝 `bootstrap/app.php` (+1 -1) 📝 `composer.json` (+0 -1) 📝 `composer.lock` (+1 -154) ➖ `config/turnstile.php` (+0 -15) 📝 `lang/en/admin/setting.php` (+3 -2) 📝 `phpstan.neon` (+1 -0) 📝 `resources/views/filament/components/turnstile-captcha.blade.php` (+8 -19) </details> ### 📄 Description Adds a similar system like oauth for captacha. Allows to create additional captcha providers. Removes `coderflexx/filament-turnstile`. --- <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 19:22:06 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1155