mirror of
https://github.com/bitwarden/android.git
synced 2026-02-04 03:05:28 -06:00
[PM-29947] Remove ResetMasterPassword property from token response model (#6285)
This commit is contained in:
parent
913d877737
commit
07415844ee
@ -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(
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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?,
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user