Skip to content

Commit

Permalink
add UserDecryptionOptions to login response (dani-garcia#3813)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stefan0xC authored Aug 31, 2023
1 parent 3d2df6c commit f162e85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f162e85

Please sign in to comment.