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

added ability to pass and parse twofactor provider

This commit is contained in:
Kyle Spearrin
2017-06-26 09:55:07 -04:00
parent f6fc8a4a0f
commit 981fd22ce5
4 changed files with 18 additions and 16 deletions

View File

@@ -13,11 +13,11 @@ var FolderRequest = function (folder) {
this.name = folder.name ? folder.name.encryptedString : null;
};
var TokenRequest = function (email, masterPasswordHash, token, device) {
var TokenRequest = function (email, masterPasswordHash, provider, token, device) {
this.email = email;
this.masterPasswordHash = masterPasswordHash;
this.token = token;
this.provider = 0; // 0 = Authenticator
this.provider = provider;
this.device = null;
if (device) {
this.device = device;