From 87ea157c577c42536a920add08dd4cdfd0b53d8d Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 11 Dec 2014 21:50:15 -0300 Subject: [PATCH] pin logout --- js/controllers/home.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/controllers/home.js b/js/controllers/home.js index 7639a43e8..64c6be50e 100644 --- a/js/controllers/home.js +++ b/js/controllers/home.js @@ -133,8 +133,9 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc $scope.error = 'Invalid email or password. You are trying to sign in using ' + storage + '. Change it on settings is necessary.'; }; - pinService.clear(function() { - }); + $rootScope.hasPin = false; + pinService.clear(function() {}); + } else if ((err.toString() || '').match('Connection')) { $scope.error = 'Could not connect to Insight Server'; } else if ((err.toString() || '').match('Unable')) {