diff options
author | Dessalines <tyhou13@gmx.com> | 2019-05-15 09:32:33 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-05-15 09:32:33 -0700 |
commit | 8820eac129a7830432ca52f41b83d74ee47ccd09 (patch) | |
tree | ec6cc21a876606b94ac7437d59bc74d2256f6fb3 /server | |
parent | 442bb3d20e1a5b93d0415b86ffe1cedb7c67b017 (diff) |
Removing need for spam_timer
Diffstat (limited to 'server')
-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"))? } |