diff options
Diffstat (limited to 'server/src/api/user.rs')
-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"))? } |