vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 4cebe1fff457515c4e35790b3637c1112fc5a390
parent a984dbbdf3d158323dec798b0becedc3f58f6d42
Author: Adam Jones <jones_adam@rocketmail.com>
Date:   Sat,  9 Oct 2021 15:42:06 +0100

cargo fmt

Diffstat:
Msrc/api/core/organizations.rs | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs @@ -1238,7 +1238,10 @@ fn put_policy( let user_twofactor_disabled = TwoFactor::find_by_user(&member.user_uuid, &conn).is_empty(); // Policy only applies to non-Owner/non-Admin members who have accepted joining the org - if user_twofactor_disabled && member.atype < UserOrgType::Admin && member.status != UserOrgStatus::Invited as i32 { + if user_twofactor_disabled + && member.atype < UserOrgType::Admin + && member.status != UserOrgStatus::Invited as i32 + { if CONFIG.mail_enabled() { let org = Organization::find_by_uuid(&member.org_uuid, &conn).unwrap(); let user = User::find_by_uuid(&member.user_uuid, &conn).unwrap();