mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-01 11:19:52 +03:00
[PR #4337] [MERGED] fix emergency access invites #3387
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/4337
Author: @stefan0xC
Created: 2/11/2024
Status: ✅ Merged
Merged: 4/27/2024
Merged by: @dani-garcia
Base:
main← Head:fix-emergency-access📝 Commits (3)
2487efafix emergency access invites with no mailce55f15delete emergency access invitationse617630improve missing emergency access grantees📊 Changes
4 files changed (+78 additions, -60 deletions)
View changed files
📝
src/api/core/accounts.rs(+10 -2)📝
src/api/core/emergency_access.rs(+20 -49)📝
src/db/models/emergency_access.rs(+47 -9)📝
src/db/models/user.rs(+1 -0)📄 Description
When mail is disabled instead of accepting emergency access for all invited users automatically, we only accept the emergency access invitation immediately if the user already exists and has a
password_hash. For invited users any open emergency access invitations will be accepted on registration.Also prevent invited emergency access contacts to register if emergency access is disabled (this is only relevant for when mail is enabled, if mail is disabled they would have an Invitation entry).
This should address the issue reported in https://github.com/dani-garcia/vaultwarden/discussions/3183 without any breaking changes (i.e. this will not disable the emergency access feature when mail is disabled).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.