added password support to UI/Controllers
This commit is contained in:
parent
cd4db8a097
commit
9d27a0b85d
4 changed files with 24 additions and 13 deletions
|
|
@ -1,11 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copay.password').controller('PasswordController',
|
||||
function($scope, $rootScope) {
|
||||
function($scope, $rootScope, Passphrase, walletFactory, controllerUtils) {
|
||||
$scope.title = 'Password';
|
||||
$scope.loading = false;
|
||||
|
||||
$scope.getPassphrase = function() {
|
||||
console.log('######### Password', $scope.password);
|
||||
};
|
||||
$scope.loading = true;
|
||||
var passphrase = Passphrase.getBase64($scope.password);
|
||||
|
||||
var w = walletFactory.open($rootScope.openedWalletId, { passphrase: passphrase});
|
||||
controllerUtils.startNetwork(w);
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue