fix: remove Flutter captcha bypass (#1234)

This commit is contained in:
Jiralite authored and GitHub committed 2026-06-30 23:35:36 +02:00
1 parent a61134d2c3
commit d5cc48a92d
2 files changed
+2 -9

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@ import {
} from '@fluxer/schema/src/domains/auth/AuthSchemas';
import {Config} from '../Config';
import {DefaultUserOnly, LoginRequiredAllowSuspicious} from '../middleware/AuthMiddleware';
import {CaptchaMiddleware, CaptchaMiddlewareSkipFlutter} from '../middleware/CaptchaMiddleware';
import {CaptchaMiddleware} from '../middleware/CaptchaMiddleware';
import {LocalAuthMiddleware} from '../middleware/LocalAuthMiddleware';
import {RateLimitMiddleware} from '../middleware/RateLimitMiddleware';
import {OpenAPI} from '../middleware/ResponseTypeMiddleware';
@@ -133,7 +133,7 @@ export function AuthController(app: HonoApp) {
app.post(
'/auth/login',
LocalAuthMiddleware,
CaptchaMiddlewareSkipFlutter,
CaptchaMiddleware,
RateLimitMiddleware(RateLimitConfigs.AUTH_LOGIN),
Validator('json', LoginRequest),
OpenAPI({