From 0564d1d960d6637bf3d996f5f26296881f9b99a8 Mon Sep 17 00:00:00 2001 From: CombatPug Date: Thu, 21 Nov 2024 13:09:08 +0100 Subject: [PATCH] fix: use login attempt limiter also in prod mode --- api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/index.ts b/api/index.ts index 9309205..d4abf06 100644 --- a/api/index.ts +++ b/api/index.ts @@ -44,7 +44,7 @@ if (isDev) { app.use(cookieParser()); setSecurityHeaders(app); app.get('/csrf-token', generateTokenHandler) - app.post('/auth/login', loginHandler) + app.post('/auth/login', loginAttemptLimiter, loginHandler) app.post('/auth/logout', logoutHandler) app.use('/api', jwtMiddleware, apiRouter) app.get('/node/version', nodeVersionHandler)