From f162e85e44ace456f19f2254145e060996edb70f Mon Sep 17 00:00:00 2001 From: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:02:36 +0200 Subject: [PATCH] add UserDecryptionOptions to login response (#3813) 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 {