Browse Source

Implemented public key method correctly, which fixes decryption errors in collections and organizations

pull/13/head
Daniel García 7 years ago
parent
commit
7e7c3681da
  1. 6
      src/api/core/accounts.rs

6
src/api/core/accounts.rs

@ -71,7 +71,11 @@ fn get_public_keys(uuid: String, headers: Headers, conn: DbConn) -> JsonResult {
None => err!("User doesn't exist")
};
Ok(Json(json!(user.public_key)))
Ok(Json(json!({
"UserId": user.uuid,
"PublicKey": user.public_key,
"Object":"userKey"
})))
}
#[post("/accounts/keys", data = "<data>")]

Loading…
Cancel
Save