1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

move api services to background page. wire up log in and log out.

This commit is contained in:
Kyle Spearrin
2016-09-03 15:44:32 -04:00
parent c3053ea3a7
commit 79860da28c
11 changed files with 90 additions and 61 deletions

View File

@@ -12,9 +12,12 @@ var FolderRequest = function (folder) {
this.name = folder.name ? folder.name.encryptedString : null;
};
var TokenRequest = function () {
this.email = null;
this.masterPasswordHash = null;
var TokenRequest = function (email, masterPasswordHash, device) {
this.email = email;
this.masterPasswordHash = masterPasswordHash;
if (device) {
this.device = new DeviceRequest(device);
}
this.device = null;
};