[CORL-668] User Comment Rate Limiting (#2616)

* feat: added user comment rate limiting

* fix: change 30 second to 3 second

* fix: moved file

* fix: services cleanup

* fix: changes based on review
This commit is contained in:
Wyatt Johnson
2019-10-03 19:33:52 +00:00
committed by GitHub
parent dd45f46b19
commit 6fe4646755
15 changed files with 2127 additions and 1967 deletions
+6
View File
@@ -53,6 +53,12 @@ export const ALLOWED_USERNAME_CHANGE_FREQUENCY = 14 * 86400;
*/
export const SCHEDULED_DELETION_TIMESPAN_DAYS = 14;
/**
* COMMENT_LIMIT_WINDOW_SECONDS is the number of seconds that a user has to
* wait in-between writing comments.
*/
export const COMMENT_LIMIT_WINDOW_SECONDS = 3;
/**
* DEFAULT_SESSION_LENTTH is the length of time in seconds a session is valid for unless configured in tenant.
*/