mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-08-02 10:18:41 -04:00
Update Bitwarden field type docs (#2163)
This commit is contained in:
committed by
Leendert de Borst
parent
6783bce4dd
commit
363c72277b
@@ -250,14 +250,19 @@ public class BitwardenZipImporter : BaseArchiveImporter
|
||||
}
|
||||
|
||||
// For all other types (Text, Hidden, Boolean), add to custom fields if value exists.
|
||||
// Bitwarden field type 1 is "Hidden"; everything else maps to a plain text field.
|
||||
// Bitwarden field types:
|
||||
// 0 = Text (plaintext)
|
||||
// 1 = Hidden (password/sensitive)
|
||||
// 2 = Boolean (true/false)
|
||||
// 3 = Linked (reference to another field - not supported, skipped)
|
||||
if (!string.IsNullOrWhiteSpace(field.Value))
|
||||
{
|
||||
var fieldType = field.Type == 1 ? FieldTypeKind.Hidden : FieldTypeKind.Text;
|
||||
BaseImporter.AddCustomField(
|
||||
credential,
|
||||
field.Name,
|
||||
field.Value,
|
||||
field.Type == 1 ? FieldTypeKind.Hidden : FieldTypeKind.Text);
|
||||
fieldType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user