A better login cooldown.

This commit is contained in:
Dessalines 2019-05-07 12:59:36 -07:00
parent b3ce400da0
commit 2ebdfc8425

View File

@ -20,8 +20,8 @@ use api::site::*;
const RATE_LIMIT_MESSAGES: i32 = 30;
const RATE_LIMIT_PER_SECOND: i32 = 60;
const RATE_LIMIT_REGISTER_MESSAGES: i32 = 1;
const RATE_LIMIT_REGISTER_PER_SECOND: i32 = 60;
const RATE_LIMIT_REGISTER_MESSAGES: i32 = 3;
const RATE_LIMIT_REGISTER_PER_SECOND: i32 = 60*3;
/// Chat server sends this messages to session