export decrypted wallet
This commit is contained in:
parent
94570179f2
commit
81a49586fb
2 changed files with 3 additions and 2 deletions
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue