summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-16 17:42:17 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-16 17:42:17 +0200
commitcf00c4787df7738c88bf40eb59bb57d62ecd695c (patch)
treefc3887baa3d8e0dda1b980375f70a1755cf409c3
parent:bug: fix release caxa start command (diff)
downloadserver-cf00c4787df7738c88bf40eb59bb57d62ecd695c.tar.xz
:sparkles: delete finished todos
-rw-r--r--api/src/middlewares/Authentication.ts1
-rw-r--r--api/src/middlewares/RateLimit.ts1
-rw-r--r--api/src/routes/auth/login.ts4
3 files changed, 0 insertions, 6 deletions
diff --git a/api/src/middlewares/Authentication.ts b/api/src/middlewares/Authentication.ts

index 42bb5374..06eeab39 100644 --- a/api/src/middlewares/Authentication.ts +++ b/api/src/middlewares/Authentication.ts
@@ -24,7 +24,6 @@ declare global { } } } -// TODO wenn client offen ist, wird http://localhost:8080/api/v9/users/@me/guild-events blockiert? export async function Authentication(req: Request, res: Response, next: NextFunction) { if (req.method === "OPTIONS") return res.sendStatus(204); diff --git a/api/src/middlewares/RateLimit.ts b/api/src/middlewares/RateLimit.ts
index 37c54969..acf92606 100644 --- a/api/src/middlewares/RateLimit.ts +++ b/api/src/middlewares/RateLimit.ts
@@ -21,7 +21,6 @@ TODO: different for methods (GET/POST) var Cache = new Map<string, Bucket>(); const EventRateLimit = "ratelimit"; -// TODO: FIX with new event handling export default function RateLimit(opts: { bucket?: string; window: number; diff --git a/api/src/routes/auth/login.ts b/api/src/routes/auth/login.ts
index f55d5351..39ccf69c 100644 --- a/api/src/routes/auth/login.ts +++ b/api/src/routes/auth/login.ts
@@ -9,8 +9,6 @@ import RateLimit from "../../middlewares/RateLimit"; const router: Router = Router(); export default router; -// TODO: check if user is deleted --> prohibit login - router.post( "/", check({ @@ -27,8 +25,6 @@ router.post( const query: any[] = [{ phone: login }]; if (email) query.push({ email }); - // TODO: Rewrite this to have the proper config syntax on the new method - const config = Config.get(); if (config.login.requireCaptcha && config.security.captcha.enabled) {