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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user