unlock the app with first match
This commit is contained in:
parent
6419342c4b
commit
0e9b39a510
1 changed files with 10 additions and 2 deletions
|
|
@ -46,7 +46,15 @@ angular.module('copayApp.controllers').controller('pincodeController', function(
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
var match = config.pincode.value == $scope.currentPincode ? true : false;
|
var match = config.pincode.value == $scope.currentPincode ? true : false;
|
||||||
|
|
||||||
if (!$scope.locking && !match) return;
|
if (!$scope.fromSettings && match) {
|
||||||
|
$scope.currentPincode = '';
|
||||||
|
$scope.close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!$scope.locking) {
|
||||||
|
if (!match) return;
|
||||||
|
saveSettings($scope.locking, '');
|
||||||
|
}
|
||||||
checkCodes();
|
checkCodes();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -79,6 +87,6 @@ angular.module('copayApp.controllers').controller('pincodeController', function(
|
||||||
|
|
||||||
$scope.close = function() {
|
$scope.close = function() {
|
||||||
$rootScope.$emit('updatePincodeOption');
|
$rootScope.$emit('updatePincodeOption');
|
||||||
$scope.pincodeModal.hide();
|
$scope.pincodeModal.remove();
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue