1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

✏️ fix typo

This commit is contained in:
Flam3rboy 2021-08-11 19:42:10 +02:00
parent bec70800df
commit a09303d294
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export default router;
// TODO: check if user is deleted/restricted
router.post(
"/",
RateLimit({ count: 5, window: 60, onylIp: true }),
RateLimit({ count: 5, window: 60, onlyIp: true }),
check({
login: new Length(String, 2, 100), // email or telephone
password: new Length(String, 8, 72),

View File

@ -12,7 +12,7 @@ const router: Router = Router();
router.post(
"/",
RateLimit({ count: 2, window: 60 * 60 * 12, onylIp: true, success: true }),
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