1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

UI for add site

This commit is contained in:
Kyle Spearrin
2016-09-03 21:45:45 -04:00
parent 2871e04cc7
commit 32f4ab4987
7 changed files with 89 additions and 18 deletions

View File

@@ -21,13 +21,15 @@
}();
var Site = function (obj) {
var cryptoService = chrome.extension.getBackgroundPage().cryptoService;
this.id = obj.id;
this.folderId = obj.folderId;
this.name = new CipherString(obj.name);
this.uri = new CipherString(obj.uri);
this.username = new CipherString(obj.username);
this.password = new CipherString(obj.password);
this.notes = new CipherString(obj.notes);
this.name = cryptoService.encrypt(obj.name);
this.uri = cryptoService.encrypt(obj.uri);
this.username = cryptoService.encrypt(obj.username);
this.password = cryptoService.encrypt(obj.password);
this.notes = cryptoService.encrypt(obj.notes);
this.favorite = new obj.favorite;
};