mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-26 17:08:33 +01:00
default to text field type (#102)
This commit is contained in:
parent
fb7335b927
commit
2858724f44
@ -79,7 +79,8 @@ export class EnpassJsonImporter extends BaseImporter implements Importer {
|
||||
} else if (field.type === 'url') {
|
||||
urls.push(field.value);
|
||||
} else {
|
||||
this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? FieldType.Hidden : null);
|
||||
this.processKvp(cipher, field.label, field.value,
|
||||
field.sensitive === 1 ? FieldType.Hidden : FieldType.Text);
|
||||
}
|
||||
});
|
||||
cipher.login.uris = this.makeUriArray(urls);
|
||||
@ -102,10 +103,12 @@ export class EnpassJsonImporter extends BaseImporter implements Importer {
|
||||
cipher.card.code = field.value;
|
||||
} else if (field.type === 'ccExpiry' && this.isNullOrWhitespace(cipher.card.expYear)) {
|
||||
if (!this.setCardExpiration(cipher, field.value)) {
|
||||
this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? FieldType.Hidden : null);
|
||||
this.processKvp(cipher, field.label, field.value,
|
||||
field.sensitive === 1 ? FieldType.Hidden : FieldType.Text);
|
||||
}
|
||||
} else {
|
||||
this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? FieldType.Hidden : null);
|
||||
this.processKvp(cipher, field.label, field.value,
|
||||
field.sensitive === 1 ? FieldType.Hidden : FieldType.Text);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -115,7 +118,8 @@ export class EnpassJsonImporter extends BaseImporter implements Importer {
|
||||
if (this.isNullOrWhitespace(field.value) || field.type === 'section') {
|
||||
return;
|
||||
}
|
||||
this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? FieldType.Hidden : null);
|
||||
this.processKvp(cipher, field.label, field.value,
|
||||
field.sensitive === 1 ? FieldType.Hidden : FieldType.Text);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user