mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-18 21:00:51 -05:00
[PR #3215] [MERGED] don't nullify key when editing emergency access #6884
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3215
Author: @stefan0xC
Created: 2/1/2023
Status: ✅ Merged
Merged: 2/12/2023
Merged by: @dani-garcia
Base:
main← Head:fix-post-emergency-access📝 Commits (2)
e65fbbfdon't nullify key when editing emergency accessc58aac5Merge branch 'main' into fix-post-emergency-access📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/api/core/emergency_access.rs(+3 -1)📄 Description
I've looked into this some more and the client does not send the key while editing an emergency access contact, so the field would be emptied on a change of the wait days or access level.
This simple fix should hopefully prevent issues like #3196 where the key has been set to
NULL.Closes #3196
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.