improvement: uiaa works like in synapse

This commit is contained in:
Timo Kösters
2021-05-04 19:03:18 +02:00
parent e1c4e5c73e
commit cf94b8e712
10 changed files with 326 additions and 177 deletions

View File

@@ -220,7 +220,12 @@ pub async fn upload_signing_keys_route(
// Success!
} else {
uiaainfo.session = Some(utils::random_string(SESSION_ID_LENGTH));
db.uiaa.create(&sender_user, &sender_device, &uiaainfo)?;
db.uiaa.create(
&sender_user,
&sender_device,
&uiaainfo,
&body.json_body.expect("body is json"),
)?;
return Err(Error::Uiaa(uiaainfo));
}