1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-07-02 16:38:36 +00:00

where did my code go???

This commit is contained in:
avdb13 2024-07-10 08:19:39 +02:00
parent 269455d93a
commit 895b66fa50
17 changed files with 331 additions and 38 deletions

View file

@ -111,6 +111,10 @@ pub async fn upload_signing_keys_route(
auth_error: None,
};
let master_key = services()
.users
.get_master_key(None, sender_user, &|user_id| user_id == sender_user)?;
if let Some(auth) = &body.auth {
let (worked, uiaainfo) =
services()
@ -126,7 +130,7 @@ pub async fn upload_signing_keys_route(
.uiaa
.create(sender_user, sender_device, &uiaainfo, &json)?;
return Err(Error::Uiaa(uiaainfo));
} else {
} else if master_key.is_some() {
return Err(Error::BadRequest(ErrorKind::NotJson, "Not json."));
}