mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-12-14 09:33:44 +01:00
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.
This commit is contained in:
parent
a2316ca091
commit
14408396bb
1 changed files with 0 additions and 1 deletions
|
@ -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.status = EmergencyAccessStatus::Confirmed as i32;
|
||||||
emergency_access.key_encrypted = None;
|
|
||||||
emergency_access.save(&conn)?;
|
emergency_access.save(&conn)?;
|
||||||
|
|
||||||
if CONFIG.mail_enabled() {
|
if CONFIG.mail_enabled() {
|
||||||
|
|
Loading…
Reference in a new issue