[PM-29947] Remove ResetMasterPassword property from token response model (#6285)

This commit is contained in:
Patrick Honkonen 2025-12-19 10:34:48 -05:00 committed by GitHub
parent 913d877737
commit 07415844ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 10 deletions

View File

@ -7092,7 +7092,6 @@ class AuthRepositoryTest {
privateKey = "privateKey",
accountKeys = null,
shouldForcePasswordReset = true,
shouldResetMasterPassword = true,
twoFactorToken = null,
masterPasswordPolicyOptions = null,
userDecryptionOptions = null,
@ -7111,7 +7110,6 @@ class AuthRepositoryTest {
privateKey = "privateKey",
accountKeys = ACCOUNT_KEYS,
shouldForcePasswordReset = true,
shouldResetMasterPassword = true,
twoFactorToken = null,
masterPasswordPolicyOptions = null,
userDecryptionOptions = UserDecryptionOptionsJson(

View File

@ -112,7 +112,6 @@ private val GET_TOKEN_RESPONSE_SUCCESS = GetTokenResponseJson.Success(
privateKey = "privateKey",
accountKeys = createMockAccountKeysJson(number = 1),
shouldForcePasswordReset = false,
shouldResetMasterPassword = true,
twoFactorToken = null,
masterPasswordPolicyOptions = null,
userDecryptionOptions = null,

View File

@ -27,8 +27,6 @@ sealed class GetTokenResponseJson {
* public key encryption key pair. This is temporarily nullable to support older accounts that
* have not been upgraded to use account keys instead of the deprecated `PrivateKey` field.
* @property shouldForcePasswordReset Whether or not the app must force a password reset.
* @property shouldResetMasterPassword Whether or not the user is required to reset their
* master password.
* @property twoFactorToken If the user has chosen to remember the two-factor authorization,
* this token will be cached and used for future auth requests.
* @property masterPasswordPolicyOptions The options available for a user's master password.
@ -79,9 +77,6 @@ sealed class GetTokenResponseJson {
@SerialName("ForcePasswordReset")
val shouldForcePasswordReset: Boolean,
@SerialName("ResetMasterPassword")
val shouldResetMasterPassword: Boolean,
@SerialName("TwoFactorToken")
val twoFactorToken: String?,

View File

@ -568,7 +568,6 @@ private const val LOGIN_SUCCESS_JSON = """
"EnforceOnLogin": true
},
"ForcePasswordReset": true,
"ResetMasterPassword": true,
"Kdf": 1,
"KdfIterations": 600000,
"KdfMemory": 16,
@ -603,7 +602,6 @@ private val LOGIN_SUCCESS = GetTokenResponseJson.Success(
privateKey = "privateKey",
accountKeys = createMockAccountKeysJson(number = 1),
shouldForcePasswordReset = true,
shouldResetMasterPassword = true,
twoFactorToken = null,
masterPasswordPolicyOptions = MasterPasswordPolicyOptionsJson(
minimumComplexity = 10,