Fix signing when put a wrong password. Fixes #297
This commit is contained in:
parent
aa0ed193fd
commit
ab9be793cb
3 changed files with 13 additions and 4 deletions
|
|
@ -21,6 +21,11 @@ angular.module('copay.signin').controller('SigninController',
|
|||
|
||||
var passphrase = Passphrase.getBase64($scope.openPassword);
|
||||
var w = walletFactory.open($scope.selectedWalletId, { passphrase: passphrase});
|
||||
if (!w) {
|
||||
$scope.loading = false;
|
||||
$rootScope.flashMessage = { message: 'Bad password or connection error', type: 'error'};
|
||||
return;
|
||||
}
|
||||
controllerUtils.startNetwork(w);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue