mirror of https://github.com/BTCPrivate/copay.git
fix bad password error
This commit is contained in:
parent
49b340eb8e
commit
c65e677f2c
|
@ -182,7 +182,7 @@
|
|||
<div class="signin" ng-controller="SigninController">
|
||||
<div data-alert class="alert-box info radius" ng-show="loading && !failure">
|
||||
<i class="size-21 fi-bitcoin-circle icon-rotate spinner"></i>
|
||||
Authenticating and Looking for peers...
|
||||
Authenticating and looking for peers...
|
||||
</div>
|
||||
<div class="alert-box error radius" ng-show="failure">
|
||||
Oops, we had an error! Looks like you are already connected to this wallet,
|
||||
|
|
|
@ -27,17 +27,15 @@ angular.module('copay.signin').controller('SigninController',
|
|||
|
||||
console.log('## Obtaining passphrase...');
|
||||
Passphrase.getBase64Async(password, function(passphrase){
|
||||
console.log('## Done.');
|
||||
console.log('## Passphrase obtained');
|
||||
var w = walletFactory.open($scope.selectedWalletId, { passphrase: passphrase});
|
||||
if (!w) {
|
||||
$scope.loading = $scope.failure = false;
|
||||
$rootScope.$flashMessage = { message: 'Bad password or connection error', type: 'error'};
|
||||
$rootScope.$flashMessage = { message: 'Wrong password', type: 'error'};
|
||||
$rootScope.$digest();
|
||||
return;
|
||||
}
|
||||
console.log('[signin.js.49]'); //TODO
|
||||
installStartupHandlers(w);
|
||||
console.log('[signin.js.52]'); //TODO
|
||||
controllerUtils.startNetwork(w);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue