[FIX] Blobvault: Include domain on account creation call

Blobvault now requires a domain field to be passed on the account creation request.
This commit is contained in:
Vahe Hovhannisyan
2014-06-16 15:42:35 -07:00
parent 6a55dbc55e
commit e50ddd6237
2 changed files with 4 additions and 2 deletions

View File

@@ -1081,6 +1081,7 @@ BlobClient.create = function(options, fn) {
data : blob.encrypt(),
email : options.email,
hostlink : options.activateLink,
domain : options.domain,
encrypted_blobdecrypt_key : blob.encryptBlobCrypt(options.masterkey, options.crypt),
encrypted_secret : blob.encrypted_secret
}

View File

@@ -467,7 +467,7 @@ VaultClient.prototype.register = function(options, fn) {
getAuthInfo,
self._deriveLoginKeys,
self._deriveUnlockKey,
create
create
];
async.waterfall(steps, fn);
@@ -489,7 +489,8 @@ VaultClient.prototype.register = function(options, fn) {
email : options.email,
masterkey : options.masterkey || crypt.createMaster(),
activateLink : options.activateLink,
oldUserBlob : options.oldUserBlob
oldUserBlob : options.oldUserBlob,
domain : options.domain
};
blobClient.create(params, function(err, blob) {