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

track last used autofill for priority filling

This commit is contained in:
Kyle Spearrin
2017-08-29 12:52:11 -04:00
parent 8804cc5a96
commit 518585cfb5
4 changed files with 99 additions and 23 deletions

View File

@@ -88,13 +88,14 @@ var CipherString = function () {
}
};
var Login = function (obj, alreadyEncrypted) {
var Login = function (obj, alreadyEncrypted, localData) {
this.id = obj.id ? obj.id : null;
this.organizationId = obj.organizationId ? obj.organizationId : null;
this.folderId = obj.folderId ? obj.folderId : null;
this.favorite = obj.favorite ? true : false;
this.organizationUseTotp = obj.organizationUseTotp ? true : false;
this.edit = obj.edit ? true : false;
this.localData = localData;
if (alreadyEncrypted === true) {
this.name = obj.name ? obj.name : null;
@@ -176,7 +177,8 @@ var Folder = function (obj, alreadyEncrypted) {
id: self.id,
organizationId: self.organizationId,
folderId: self.folderId,
favorite: self.favorite
favorite: self.favorite,
localData: self.localData
};
var attachments = [];