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 f162e85e44ace456f19f2254145e060996edb70f
parent 3d2df6ce114366786d08bc21f52388753ab4991f
Author: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>
Date:   Thu, 31 Aug 2023 11:02:36 +0200

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.
Diffstat:
Msrc/api/identity.rs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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 {