From: Dessalines Date: Tue, 7 May 2019 19:59:36 +0000 (-0700) Subject: A better login cooldown. X-Git-Url: http://these/git/%7B%60https:/%7B%60/css/themes/static/test?a=commitdiff_plain;h=780817840f718500063579056081cfc1526f16bb;p=lemmy.git A better login cooldown. --- diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index cd931e1f..abdf9ea9 100644 --- a/server/src/websocket/server.rs +++ b/server/src/websocket/server.rs @@ -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