askForPin scope
This commit is contained in:
parent
e2bc1eb86a
commit
d5a9a916db
5 changed files with 19 additions and 19 deletions
|
|
@ -14,7 +14,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
$scope.hideForWP = 0;
|
||||
$scope.digits = [];
|
||||
$scope.defined = [];
|
||||
$rootScope.askForPin = 0;
|
||||
$scope.askForPin = 0;
|
||||
|
||||
$scope.createStep = 'storage';
|
||||
$scope.useLocalstorage = false;
|
||||
|
|
@ -53,7 +53,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
pinService.save(pin, _credentials.email, _credentials.password, function(err) {
|
||||
_credentials.password = '';
|
||||
_credentials = null;
|
||||
$rootScope.askForPin = 0;
|
||||
$scope.askForPin = 0;
|
||||
$rootScope.hasPin = true;
|
||||
$scope.createDefaultWallet();
|
||||
});
|
||||
|
|
@ -100,7 +100,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
$rootScope.hideNavigation = false;
|
||||
$rootScope.starting = true;
|
||||
identityService.createDefaultWallet(function(err) {
|
||||
$rootScope.askForPin = 0;
|
||||
$scope.askForPin = 0;
|
||||
$rootScope.starting = null;
|
||||
|
||||
if (err) {
|
||||
|
|
@ -140,7 +140,7 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
email: emailOrUsername,
|
||||
password: password,
|
||||
};
|
||||
$rootScope.askForPin = 1;
|
||||
$scope.askForPin = 1;
|
||||
$scope.hideForWP = 0;
|
||||
|
||||
$rootScope.hideNavigation = true;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
$scope.attempt = 0;
|
||||
$scope.digits = [];
|
||||
$scope.defined = [];
|
||||
$rootScope.askForPin = 0;
|
||||
$scope.askForPin = 0;
|
||||
|
||||
// This is only for backwards compat, insight api should link to #!/confirmed directly
|
||||
if (getParam('confirmed')) {
|
||||
|
|
@ -113,7 +113,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
pinService.save(pin, _credentials.email, _credentials.password, function(err) {
|
||||
_credentials.password = '';
|
||||
_credentials = null;
|
||||
$rootScope.askForPin = 0;
|
||||
$scope.askForPin = 0;
|
||||
$rootScope.hasPin = true;
|
||||
$rootScope.starting = null;
|
||||
$scope.openWallets();
|
||||
|
|
@ -183,7 +183,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
email: email,
|
||||
password: password,
|
||||
};
|
||||
$rootScope.askForPin = 1;
|
||||
$scope.askForPin = 1;
|
||||
$rootScope.starting = false;
|
||||
$rootScope.hideNavigation = true;
|
||||
$timeout(function() {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ angular.module('copayApp.services')
|
|||
if (!$rootScope.hasPin) {
|
||||
if (!_firstpin) {
|
||||
_firstpin = pin;
|
||||
$rootScope.askForPin = 2;
|
||||
scope.askForPin = 2;
|
||||
$timeout(function() {
|
||||
scope.clear();
|
||||
}, 100);
|
||||
|
|
@ -73,12 +73,12 @@ angular.module('copayApp.services')
|
|||
else {
|
||||
if (pin === _firstpin) {
|
||||
_firstpin = null;
|
||||
$rootScope.askForPin = null;
|
||||
scope.askForPin = null;
|
||||
scope.createPin(pin);
|
||||
}
|
||||
else {
|
||||
_firstpin = null;
|
||||
$rootScope.askForPin = 1;
|
||||
scope.askForPin = 1;
|
||||
$timeout(function() {
|
||||
scope.clear();
|
||||
scope.error = 'Entered PINs were not equal. Try again';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue