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 432be274ba2aac070af1d91c684cb7b70014175f
parent 484bf5b703fa85b61580ffb34f59768c4bd200b1
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue, 15 Jan 2019 17:31:03 +0100

Improve org mismatch check, consider different orgs

Diffstat:
Msrc/api/core/ciphers.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -221,7 +221,7 @@ pub fn update_cipher_from_data( nt: &Notify, ut: UpdateType, ) -> EmptyResult { - if cipher.organization_uuid.is_some() && data.OrganizationId.is_none() { + if cipher.organization_uuid != data.OrganizationId { err!("Organization mismatch. Please resync the client before updating the cipher") }