Refactory
This commit is contained in:
parent
f7a0cb3c6e
commit
a25fead7d5
2 changed files with 3 additions and 7 deletions
|
|
@ -378,13 +378,13 @@ angular.module('copayApp.services')
|
|||
$log.debug('Wallet is encrypted');
|
||||
$rootScope.$emit('Local/NeedsPassword', false, function(err2, password) {
|
||||
if (err2 || !password) {
|
||||
return cb(err2 || gettext('Password needed'));
|
||||
return cb({message: (err2 || gettext('Password needed'))});
|
||||
}
|
||||
try {
|
||||
fc.unlock(password);
|
||||
} catch (e) {
|
||||
$log.debug(e);
|
||||
return cb(gettext('Wrong password'));
|
||||
return cb({message: gettext('Wrong password')});
|
||||
}
|
||||
$timeout(function() {
|
||||
if (fc.isPrivKeyEncrypted()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue