1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-08 09:43:42 +01:00

Remove artificial limit on name length (#14)

This commit is contained in:
ServiusHack 2018-10-09 21:40:06 +02:00 committed by Kyle Spearrin
parent dcef50bd8f
commit 6f3806845d

View File

@ -20,9 +20,6 @@ export class PassmanJsonImporter extends BaseImporter implements Importer {
const cipher = this.initLoginCipher(); const cipher = this.initLoginCipher();
cipher.name = credential.label; cipher.name = credential.label;
if (cipher.name != null && cipher.name.length > 30) {
cipher.name = cipher.name.substring(0, 30);
}
cipher.login.username = this.getValueOrDefault(credential.username); cipher.login.username = this.getValueOrDefault(credential.username);
if (this.isNullOrWhitespace(cipher.login.username)) { if (this.isNullOrWhitespace(cipher.login.username)) {