Skip to content

Commit eee1b54

Browse files
authored
[PM-14814] Add organization_use_totp to CipherListView (#30)
Add organization_use_totp to CipherListView
1 parent a5f98db commit eee1b54

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/bitwarden-vault/src/cipher/cipher.rs

+3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ pub struct CipherListView {
160160

161161
pub favorite: bool,
162162
pub reprompt: CipherRepromptType,
163+
pub organization_use_totp: bool,
163164
pub edit: bool,
164165
pub view_password: bool,
165166

@@ -570,6 +571,7 @@ impl KeyDecryptable<SymmetricCryptoKey, CipherListView> for Cipher {
570571
},
571572
favorite: self.favorite,
572573
reprompt: self.reprompt,
574+
organization_use_totp: self.organization_use_totp,
573575
edit: self.edit,
574576
view_password: self.view_password,
575577
attachments: self
@@ -806,6 +808,7 @@ mod tests {
806808
}),
807809
favorite: cipher.favorite,
808810
reprompt: cipher.reprompt,
811+
organization_use_totp: cipher.organization_use_totp,
809812
edit: cipher.edit,
810813
view_password: cipher.view_password,
811814
attachments: 0,

crates/bitwarden-vault/src/totp.rs

+1
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ mod tests {
384384
}),
385385
favorite: false,
386386
reprompt: CipherRepromptType::None,
387+
organization_use_totp: true,
387388
edit: true,
388389
view_password: true,
389390
attachments: 0,

0 commit comments

Comments
 (0)