vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 7e7c3681da92a94ed1f2db57387b7b42512e8e80
parent 79b4ddcae8d6f00af6db1d04c478637744ef3622
Author: Daniel GarcĂ­a <dani1861994@hotmail.com>
Date:   Fri,  4 May 2018 22:54:23 +0200

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

Diffstat:
Msrc/api/core/accounts.rs | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/api/core/accounts.rs b/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>")]