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') {
|
} else if (field.type === 'url') {
|
||||||
urls.push(field.value);
|
urls.push(field.value);
|
||||||
} else {
|
} 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);
|
cipher.login.uris = this.makeUriArray(urls);
|
||||||
|
@ -102,10 +103,12 @@ export class EnpassJsonImporter extends BaseImporter implements Importer {
|
||||||
cipher.card.code = field.value;
|
cipher.card.code = field.value;
|
||||||
} else if (field.type === 'ccExpiry' && this.isNullOrWhitespace(cipher.card.expYear)) {
|
} else if (field.type === 'ccExpiry' && this.isNullOrWhitespace(cipher.card.expYear)) {
|
||||||
if (!this.setCardExpiration(cipher, field.value)) {
|
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 {
|
} 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') {
|
if (this.isNullOrWhitespace(field.value) || field.type === 'section') {
|
||||||
return;
|
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