mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix: remove Flutter captcha bypass (#1234)
This commit is contained in:
1 parent
a61134d2c3
commit
d5cc48a92d
2 files changed
+2
-9
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user