summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 18:57:25 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 18:57:25 +0200
commit202cc248119fc369a43fb6e1a91c8023dc69041e (patch)
treea0e0007c581b6198e22908f0c706e98535b3e498 /src/routes
parent:bug: fix rabbit mq -> fanout instead of work queue (diff)
downloadserver-202cc248119fc369a43fb6e1a91c8023dc69041e.tar.xz
:sparkles: rate limit now configurable in the config
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/auth/login.ts1
-rw-r--r--src/routes/auth/register.ts1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/routes/auth/login.ts b/src/routes/auth/login.ts
index 6c4e5e3e..c3661608 100644
--- a/src/routes/auth/login.ts
+++ b/src/routes/auth/login.ts
@@ -13,7 +13,6 @@ export default router;
 
 router.post(
 	"/",
-	RateLimit({ count: 5, window: 60, onlyIp: true }),
 	check({
 		login: new Length(String, 2, 100), // email or telephone
 		password: new Length(String, 8, 72),
diff --git a/src/routes/auth/register.ts b/src/routes/auth/register.ts
index 0dd92e16..66a1fc8d 100644
--- a/src/routes/auth/register.ts
+++ b/src/routes/auth/register.ts
@@ -12,7 +12,6 @@ const router: Router = Router();
 
 router.post(
 	"/",
-	RateLimit({ count: 2, window: 60 * 60 * 12, onlyIp: true, success: true }),
 	check({
 		username: new Length(String, 2, 32),
 		// TODO: check min password length in config