Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Implemented public key method correctly, which fixes decryption errors in collections and organizations
Dieser Commit ist enthalten in:
Ursprung
79b4ddcae8
Commit
7e7c3681da
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
|
@ -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>")]
|
||||
|
|
Laden …
In neuem Issue referenzieren