Browse Source

fix: add ForcePasswordReset to api key login (#6904)

pull/6853/head^2
Chris Kruger 1 month ago
committed by GitHub
parent
commit
747286dccd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/api/identity.rs

1
src/api/identity.rs

@ -647,6 +647,7 @@ async fn _user_api_key_login(
"KdfMemory": user.client_kdf_memory,
"KdfParallelism": user.client_kdf_parallelism,
"ResetMasterPassword": false, // TODO: according to official server seems something like: user.password_hash.is_empty(), but would need testing
"ForcePasswordReset": false,
"scope": AuthMethod::UserApiKey.scope(),
"UserDecryptionOptions": {
"HasMasterPassword": has_master_password,

Loading…
Cancel
Save