mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 18:55:57 +03:00
feat: Support for storing passkeys in the vault
This commit is contained in:
@@ -210,7 +210,8 @@ pub struct CipherData {
|
||||
Login = 1,
|
||||
SecureNote = 2,
|
||||
Card = 3,
|
||||
Identity = 4
|
||||
Identity = 4,
|
||||
Fido2Key = 5
|
||||
*/
|
||||
pub Type: i32,
|
||||
pub Name: String,
|
||||
@@ -222,6 +223,7 @@ pub struct CipherData {
|
||||
SecureNote: Option<Value>,
|
||||
Card: Option<Value>,
|
||||
Identity: Option<Value>,
|
||||
Fido2Key: Option<Value>,
|
||||
|
||||
Favorite: Option<bool>,
|
||||
Reprompt: Option<i32>,
|
||||
@@ -464,6 +466,7 @@ pub async fn update_cipher_from_data(
|
||||
2 => data.SecureNote,
|
||||
3 => data.Card,
|
||||
4 => data.Identity,
|
||||
5 => data.Fido2Key,
|
||||
_ => err!("Invalid type"),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user