1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Added import for lastpass csv. Username no longer required.

This commit is contained in:
Kyle Spearrin
2015-12-26 23:15:35 -05:00
parent 49921f7355
commit 9aa62e748c
12 changed files with 132 additions and 22 deletions

View File

@@ -24,7 +24,7 @@ angular
folderId: encryptedSite.FolderId,
name: cryptoService.decrypt(encryptedSite.Name),
uri: cryptoService.decrypt(encryptedSite.Uri),
username: cryptoService.decrypt(encryptedSite.Username),
username: encryptedSite.Username && encryptedSite.Username !== '' ? cryptoService.decrypt(encryptedSite.Username) : null,
password: cryptoService.decrypt(encryptedSite.Password),
notes: encryptedSite.Notes && encryptedSite.Notes !== '' ? cryptoService.decrypt(encryptedSite.Notes) : null
};
@@ -79,7 +79,7 @@ angular
folderId: unencryptedSite.folderId === '' ? null : unencryptedSite.folderId,
uri: cryptoService.encrypt(unencryptedSite.uri, key),
name: cryptoService.encrypt(unencryptedSite.name, key),
username: cryptoService.encrypt(unencryptedSite.username, key),
username: !unencryptedSite.username || unencryptedSite.username === '' ? null : cryptoService.encrypt(unencryptedSite.username, key),
password: cryptoService.encrypt(unencryptedSite.password, key),
notes: !unencryptedSite.notes || unencryptedSite.notes === '' ? null : cryptoService.encrypt(unencryptedSite.notes, key)
};