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 14408396bbdcc360177d104883f7b111de07cd77
parent a2316ca091ebb7f6e4ed06d150d72474ef103839
Author: Jeremy Lin <jeremy.lin@gmail.com>
Date:   Sun, 31 Oct 2021 02:14:18 -0700

Fix missing encrypted key after emergency access reject

Rejecting an emergency access request should transition the grantor/grantee
relationship back into the `Confirmed` state, and the grantor's encrypted key
should remain in escrow rather than being cleared, or else future emergency
access requsts from that grantee will fail.

Diffstat:
Msrc/api/core/emergency_access.rs | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/api/core/emergency_access.rs b/src/api/core/emergency_access.rs @@ -539,7 +539,6 @@ fn reject_emergency_access(emer_id: String, headers: Headers, conn: DbConn) -> J }; emergency_access.status = EmergencyAccessStatus::Confirmed as i32; - emergency_access.key_encrypted = None; emergency_access.save(&conn)?; if CONFIG.mail_enabled() {