mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
[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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user