Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

refix

kruzhambus6d8dc3edd040
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts
index 7a296df1e..a39d927e6 100644
--- a/src/auth/auth.controller.ts
+++ b/src/auth/auth.controller.ts
@@ -62,8 +62,8 @@ export class AuthController {
@Post('/login')
async loginUser(@Body() userLoginDTO: UserLoginDTO, @Headers() headers, @Ip() reqIP): Promise<any> {
this.logger.log({ userLoginDTO }, 'POST /auth/login')
- // const ip = headers['cf-connecting-ip'] || headers['x-forwarded-for'] || reqIP || ''
- // await checkRateLimit(ip, 'login', 10, 1800)
+ const ip = headers['cf-connecting-ip'] || headers['x-forwarded-for'] || reqIP || ''
+ await checkRateLimit(ip, 'login', 10, 1800)
// await this.authService.checkCaptcha(userLoginDTO.recaptcha)
if (isSelfhosted) {