mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-25 21:30:18 +00:00
Implemented public key method correctly, which fixes decryption errors in collections and organizations
This commit is contained in:
parent
79b4ddcae8
commit
7e7c3681da
1 changed files with 5 additions and 1 deletions
|
@ -71,7 +71,11 @@ fn get_public_keys(uuid: String, headers: Headers, conn: DbConn) -> JsonResult {
|
||||||
None => err!("User doesn't exist")
|
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>")]
|
#[post("/accounts/keys", data = "<data>")]
|
||||||
|
|
Loading…
Reference in a new issue