diff options
author | Dessalines <happydooby@gmail.com> | 2019-05-15 09:32:33 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-05-15 09:32:33 -0700 |
commit | db5b0a951e77d08af3b9a762f14a5b26e73740bf (patch) | |
tree | 44b43dee89aa9f2ef8f198166aa46cfa7f9d7a7b /server/src | |
parent | 6b87cdcb63e53a759181574a56794f2fe74a91dd (diff) |
Removing need for spam_timer
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/api/user.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server/src/api/user.rs b/server/src/api/user.rs index ab0f24a5..9361ca4d 100644 --- a/server/src/api/user.rs +++ b/server/src/api/user.rs @@ -15,7 +15,6 @@ pub struct Register { password: String, password_verify: String, admin: bool, - spam_timeri: i64, } #[derive(Serialize, Deserialize)] @@ -133,10 +132,6 @@ impl Perform<LoginResponse> for Oper<Register> { return Err(APIError::err(&self.op, "Passwords do not match."))? } - if data.spam_timeri < 1142 { - return Err(APIError::err(&self.op, "Too fast"))? - } - if has_slurs(&data.username) { return Err(APIError::err(&self.op, "No slurs"))? } |