From 018e248dd14269a94e084ee7c786c7eb57fdc2d6 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Thu, 1 May 2014 11:58:48 -0300 Subject: [PATCH] adde ruturn to signin if we not select a wallet before --- js/controllers/password.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/controllers/password.js b/js/controllers/password.js index 40aa92c46..8d6eac904 100644 --- a/js/controllers/password.js +++ b/js/controllers/password.js @@ -1,10 +1,14 @@ 'use strict'; angular.module('copay.password').controller('PasswordController', - function($scope, $rootScope, Passphrase, walletFactory, controllerUtils) { + function($scope, $rootScope, $location, Passphrase, walletFactory, controllerUtils) { $scope.title = 'Password'; $scope.loading = false; + if (!$rootScope.openedWalletId) { + $location.path('signin'); + } + $scope.getPassphrase = function() { $scope.loading = true; var passphrase = Passphrase.getBase64($scope.password);