1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-22 05:10:29 +01:00
vaultwarden/src/db/models
Stefan Melmuk e9aa5a545e
fix emergency access invites (#4337)
* fix emergency access invites with no mail

when mail is disabled instead of accepting emergency access for all
invited users automatically, we only accept if the user already exists

on registration of a new account any open emergency access invitations
will be accepted, if mail is disabled

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 should have an Invitation entry)

* delete emergency access invitations

if an invited user is deleted in the /admin panel their emergency
access invitation will remain in the database which causes
the to_json_grantee_details fn to panic

* improve missing emergency access grantees

instead of returning an empty emergency access contact the entry should
not be added to the list. also the error handling can be improved a bit.
2024-04-27 22:16:05 +02:00
..
attachment.rs Improve JWT key initialization and avoid saving public key (#4085) 2024-03-17 15:11:20 +01:00
auth_request.rs Update chrono and sqlite (#4436) 2024-03-19 19:47:30 +01:00
cipher.rs Update crates and some Clippy fixes (#4475) 2024-04-06 13:55:10 +02:00
collection.rs improve access to collections via groups (#4441) 2024-04-27 22:09:00 +02:00
device.rs Update chrono and sqlite (#4436) 2024-03-19 19:47:30 +01:00
emergency_access.rs fix emergency access invites (#4337) 2024-04-27 22:16:05 +02:00
event.rs Update chrono and sqlite (#4436) 2024-03-19 19:47:30 +01:00
favorite.rs Update to diesel2 2022-10-23 00:49:23 +02:00
folder.rs Update to diesel2 2022-10-23 00:49:23 +02:00
group.rs Fix #3624: fix manager permission within groups (#3754) 2024-03-17 22:11:34 +01:00
mod.rs Implement login-with-device 2023-08-13 17:54:18 +02:00
org_policy.rs automatically use email address as 2fa provider (#4317) 2024-03-17 22:35:02 +01:00
organization.rs enforce 2FA policy on removal of second factor and login (#3803) 2024-01-01 19:41:40 +01:00
send.rs Improve file limit handling (#4242) 2024-01-27 02:43:26 +01:00
two_factor.rs Change timestamp data type. (#4355) 2024-03-17 22:04:37 +01:00
two_factor_incomplete.rs Update to diesel2 2022-10-23 00:49:23 +02:00
user.rs fix emergency access invites (#4337) 2024-04-27 22:16:05 +02:00