Reset variables. Added text: repeat pin

This commit is contained in:
Gustavo Maximiliano Cortez 2015-01-29 02:21:59 -03:00
commit e2bc1eb86a
3 changed files with 6 additions and 0 deletions

View file

@ -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';