Browse Source

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.
pull/3813/head
Stefan Melmuk 2 years ago
parent
commit
b664bcbf81
No known key found for this signature in database GPG Key ID: 817020C608FE9C09
  1. 4
      src/api/identity.rs

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

Loading…
Cancel
Save