1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 12:42:44 +01:00

delete finished todos

This commit is contained in:
Flam3rboy 2021-08-16 17:42:17 +02:00
parent 0a025d02ce
commit ecced11085
3 changed files with 0 additions and 6 deletions

View File

@ -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) { export async function Authentication(req: Request, res: Response, next: NextFunction) {
if (req.method === "OPTIONS") return res.sendStatus(204); if (req.method === "OPTIONS") return res.sendStatus(204);

View File

@ -21,7 +21,6 @@ TODO: different for methods (GET/POST)
var Cache = new Map<string, Bucket>(); var Cache = new Map<string, Bucket>();
const EventRateLimit = "ratelimit"; const EventRateLimit = "ratelimit";
// TODO: FIX with new event handling
export default function RateLimit(opts: { export default function RateLimit(opts: {
bucket?: string; bucket?: string;
window: number; window: number;

View File

@ -9,8 +9,6 @@ import RateLimit from "../../middlewares/RateLimit";
const router: Router = Router(); const router: Router = Router();
export default router; export default router;
// TODO: check if user is deleted --> prohibit login
router.post( router.post(
"/", "/",
check({ check({
@ -27,8 +25,6 @@ router.post(
const query: any[] = [{ phone: login }]; const query: any[] = [{ phone: login }];
if (email) query.push({ email }); if (email) query.push({ email });
// TODO: Rewrite this to have the proper config syntax on the new method
const config = Config.get(); const config = Config.get();
if (config.login.requireCaptcha && config.security.captcha.enabled) { if (config.login.requireCaptcha && config.security.captcha.enabled) {