Skip to content

Commit

Permalink
fix: use login attempt limiter also in prod mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PudgyPug committed Nov 21, 2024
1 parent 82606e3 commit 0564d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0564d1d

Please sign in to comment.