From e2bc1eb86a1ff77598a46977c3aa6dab845c0f2c Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 29 Jan 2015 02:21:59 -0300 Subject: [PATCH] Reset variables. Added text: repeat pin --- js/services/pinService.js | 4 ++++ views/createProfile.html | 1 + views/home.html | 1 + 3 files changed, 6 insertions(+) diff --git a/js/services/pinService.js b/js/services/pinService.js index fa20c78c2..11f66469d 100644 --- a/js/services/pinService.js +++ b/js/services/pinService.js @@ -64,6 +64,7 @@ angular.module('copayApp.services') if (!$rootScope.hasPin) { if (!_firstpin) { _firstpin = pin; + $rootScope.askForPin = 2; $timeout(function() { scope.clear(); }, 100); @@ -71,10 +72,13 @@ angular.module('copayApp.services') } else { if (pin === _firstpin) { + _firstpin = null; + $rootScope.askForPin = null; scope.createPin(pin); } else { _firstpin = null; + $rootScope.askForPin = 1; $timeout(function() { scope.clear(); scope.error = 'Entered PINs were not equal. Try again'; diff --git a/views/createProfile.html b/views/createProfile.html index 4ad11e872..0b1b05d23 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -213,6 +213,7 @@ clipo +
Repeat PIN
diff --git a/views/home.html b/views/home.html index 2311f33d3..fc4c6bb71 100644 --- a/views/home.html +++ b/views/home.html @@ -63,6 +63,7 @@ clipo clipo
+
Repeat PIN