summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-04-26 09:21:20 -0700
committerDessalines <happydooby@gmail.com>2019-04-26 09:21:20 -0700
commite3651e76bb781c706aad93cc3eb9732aafaaa20b (patch)
tree75afc28e66c59818dbd41f269dd5dfee0462fd67 /server
parent9b9e57a69db85e033310b6712d2e2a3bc98d1443 (diff)
Spam
Diffstat (limited to 'server')
-rw-r--r--server/src/websocket_server/server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/websocket_server/server.rs b/server/src/websocket_server/server.rs
index d6a9226b..9c609a47 100644
--- a/server/src/websocket_server/server.rs
+++ b/server/src/websocket_server/server.rs
@@ -92,7 +92,7 @@ pub struct Register {
password: String,
password_verify: String,
admin: bool,
- spam_timer: i64,
+ spam_timeri: i64,
}
#[derive(Serialize, Deserialize)]
@@ -790,7 +790,7 @@ impl Perform for Register {
return Err(self.error("Passwords do not match."))?
}
- if self.spam_timer < 1142 {
+ if self.spam_timeri < 1142 {
return Err(self.error("Too fast"))?
}