This commit is contained in:
Matias Alejo Garcia 2016-08-17 17:31:45 -03:00
commit 7d0870aea0
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
6 changed files with 152 additions and 77 deletions

View file

@ -843,5 +843,14 @@ console.log('[walletService.js.786:wallet:]',wallet, forceNew); //TODO
root.handleEncryptedWallet = function(client, cb) {
if (!root.isEncrypted(client)) return cb();
$rootScope.$emit('Local/NeedsPassword', false, function(err, password) {
if (err) return cb(err);
return cb(walletService.unlock(client, password));
});
};
return root;
});