export decrypted wallet

This commit is contained in:
Javier 2016-10-12 14:57:02 -03:00
commit 81a49586fb
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,8 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
if (err) {
popupService.showAlert(gettextCatalog.getString('Error'), err.message || err);
} else {
$ionicHistory.removeBackView();
$ionicHistory.clearHistory();
$ionicHistory.clearCache();
$state.go('tabs.home');
}
});

View file

@ -872,7 +872,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
if (!password) return cb('no password');
if (!wallet.checkPassword(password)) return cb('wrong password');
wallet.credentials.decryptPrivateKey(password);
return cb(null, password);
});
};