From 4803145f86c0d82640fbb0a3deb53f492fd8f851 Mon Sep 17 00:00:00 2001 From: tone Date: Fri, 19 Dec 2025 20:00:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E9=99=86=E6=8E=A5=E5=8F=A3=E9=99=90=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/backend/src/auth/auth.controller.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/backend/src/auth/auth.controller.ts b/apps/backend/src/auth/auth.controller.ts index 81e8767..3735fee 100644 --- a/apps/backend/src/auth/auth.controller.ts +++ b/apps/backend/src/auth/auth.controller.ts @@ -44,6 +44,10 @@ export class AuthController { } @Post('login/password') + @UseGuards(ThrottlerGuard) + @Throttle({ 'min': { limit: 10, ttl: 60 * 1000 } }) + @Throttle({ 'hour': { limit: 20, ttl: 60 * 60 * 1000 } }) + @Throttle({ 'day': { limit: 50, ttl: 24 * 60 * 60 * 1000 } }) async loginByPassword( @Body() loginDto: LoginByPasswordDto, @Res({ passthrough: true }) res: Response,