mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-24 19:07:44 +03:00
[PR #3803] [MERGED] enforce 2FA policy on removal of second factor and login #3310
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/3803
Author: @stefan0xC
Created: 8/27/2023
Status: ✅ Merged
Merged: 1/1/2024
Merged by: @dani-garcia
Base:
main← Head:enforce-2fa-policy-on-removal📝 Commits (3)
cb36ee5enforce 2fa policy on removal of second factord5847e6use &str instead of String in log_event()8a8b0c7enforce the 2fa policy on login📊 Changes
7 files changed (+163 additions, -122 deletions)
View changed files
📝
src/api/admin.rs(+8 -4)📝
src/api/core/ciphers.rs(+8 -16)📝
src/api/core/events.rs(+2 -2)📝
src/api/core/organizations.rs(+35 -58)📝
src/api/core/two_factor/mod.rs(+79 -17)📝
src/api/identity.rs(+21 -25)📝
src/db/models/organization.rs(+10 -0)📄 Description
after a user's 2FA is removed, they should be deleted from all organizations where the 2fA policy is enforced.
fixes #3798
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.