Merge pull request #2886 from cmgustavo/bug/password-error01
Fixes message error when password incorrect
This commit is contained in:
commit
466c79d0e9
1 changed files with 2 additions and 2 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