Remove dead code

This commit is contained in:
Ethan O'Brien
2024-02-26 20:50:11 -06:00
parent 510b948bda
commit f6cf70ab9f
10 changed files with 22 additions and 37 deletions

View File

@@ -10,8 +10,7 @@ pub fn dummy(req: HttpRequest, _body: String) -> HttpResponse {
//let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
let blank_header = HeaderValue::from_static("");
let key = req.headers().get("a6573cbe").unwrap_or(&blank_header).to_str().unwrap_or("");
let uid = req.headers().get("aoharu-user-id").unwrap_or(&blank_header).to_str().unwrap_or("");
let user = userdata::get_acc(key, uid);
let user = userdata::get_acc(key);
println!("Signin from uid: {}", user["user"]["id"].clone());
let resp = object!{