added password support to UI/Controllers

This commit is contained in:
Mario Colque 2014-05-01 09:59:43 -03:00
commit 9d27a0b85d
4 changed files with 24 additions and 13 deletions

View file

@ -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);
};
});