]> Untitled Git - lemmy.git/commitdiff
A better login cooldown.
authorDessalines <tyhou13@gmx.com>
Tue, 7 May 2019 19:59:36 +0000 (12:59 -0700)
committerDessalines <tyhou13@gmx.com>
Tue, 7 May 2019 19:59:36 +0000 (12:59 -0700)
server/src/websocket/server.rs

index cd931e1fa3cbfe8b23584cb27ff25ba82cfd62ea..abdf9ea9bb1b6bb9aa8cdc74e92d273a622b89c3 100644 (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