1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-12 22:19:08 +00:00

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.
This commit is contained in:
Stefan Melmuk 2023-08-30 00:39:45 +02:00
commit b664bcbf81
No known key found for this signature in database
GPG key ID: 817020C608FE9C09

View file

@ -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 {