From b664bcbf814fa5b87072fb8b2f51bf11f2650abe Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Wed, 30 Aug 2023 00:39:45 +0200 Subject: [PATCH] add UserDecryptionOptions to login response needed for web-v2023.8.2+ compatibility due to the inclusion of the new trusted device encryption feature. without this change, the web vault will assume that you don't have a master password set and force you to set one. --- src/api/identity.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/identity.rs b/src/api/identity.rs index 8dbb78f6..5b34fc65 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -280,6 +280,10 @@ async fn _password_login( "ResetMasterPassword": false,// TODO: Same as above "scope": scope, "unofficialServer": true, + "UserDecryptionOptions": { + "HasMasterPassword": !user.password_hash.is_empty(), + "Object": "userDecryptionOptions" + }, }); if let Some(token) = twofactor_token {