|
|
@ -212,8 +212,7 @@ pub struct CipherData {
|
|
|
|
Login = 1,
|
|
|
|
Login = 1,
|
|
|
|
SecureNote = 2,
|
|
|
|
SecureNote = 2,
|
|
|
|
Card = 3,
|
|
|
|
Card = 3,
|
|
|
|
Identity = 4,
|
|
|
|
Identity = 4
|
|
|
|
Fido2Key = 5
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
pub Type: i32,
|
|
|
|
pub Type: i32,
|
|
|
|
pub Name: String,
|
|
|
|
pub Name: String,
|
|
|
@ -225,7 +224,6 @@ pub struct CipherData {
|
|
|
|
SecureNote: Option<Value>,
|
|
|
|
SecureNote: Option<Value>,
|
|
|
|
Card: Option<Value>,
|
|
|
|
Card: Option<Value>,
|
|
|
|
Identity: Option<Value>,
|
|
|
|
Identity: Option<Value>,
|
|
|
|
Fido2Key: Option<Value>,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Favorite: Option<bool>,
|
|
|
|
Favorite: Option<bool>,
|
|
|
|
Reprompt: Option<i32>,
|
|
|
|
Reprompt: Option<i32>,
|
|
|
@ -468,7 +466,6 @@ pub async fn update_cipher_from_data(
|
|
|
|
2 => data.SecureNote,
|
|
|
|
2 => data.SecureNote,
|
|
|
|
3 => data.Card,
|
|
|
|
3 => data.Card,
|
|
|
|
4 => data.Identity,
|
|
|
|
4 => data.Identity,
|
|
|
|
5 => data.Fido2Key,
|
|
|
|
|
|
|
|
_ => err!("Invalid type"),
|
|
|
|
_ => err!("Invalid type"),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|