diff --git a/src/node/routes/login.ts b/src/node/routes/login.ts index f02c9c08..e0b5ddda 100644 --- a/src/node/routes/login.ts +++ b/src/node/routes/login.ts @@ -88,9 +88,7 @@ router.post("/", async (req, res) => { // Note: successful logins should not count against the RateLimiter // which is why this logic must come after the successful login logic - if (!limiter.removeToken()) { - throw new Error("Login rate limited!") - } + limiter.removeToken() console.error( "Failed login attempt",