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