|
|
@@ -33,13 +33,13 @@ pub async fn route(
|
|
|
let pass_hash = hash_password(&body.password)?;
|
|
|
let user = User::new(body.name, body.email, pass_hash);
|
|
|
user.insert_one(&db).await?;
|
|
|
- Ok(HttpResponse::Ok().json(user.response()))
|
|
|
+ Ok(HttpResponse::Ok().json({"success": true}))
|
|
|
}
|
|
|
|
|
|
fn is_bot(url: &Option<String>, time: &Option<String>) -> bool {
|
|
|
match url {
|
|
|
Some(u) => {
|
|
|
- if u != "https://" {return true}
|
|
|
+ if u != "" {return true}
|
|
|
},
|
|
|
None => {return true}
|
|
|
}
|