1var app = angular.module('bossApp'); 2app.controller('oneTimePinCtrl', ['$scope', '$http', 'PinService', '$state','$rootScope','$timeout','$attrs', function($scope, $http, PinService, $state,$rootScope,$timeout,$attrs) { 3 $timeout(function() { 4 var scope = angular.element(document.getElementById("twoFactorAuthOOBA")).scope(); 5 // success callback 6 ooba_success = function() { 7 console.log("OOBA success"); 8 angular.element(document.getElementById("twoFactorAuthOOBA")).scope().oobaVerifyCallBack(); 9 F2.removeAllApps(); 10 $("<div id=\"com_swapstech_star_ooba\"></div>").appendTo($("#OOBAcontainer")); 11 12 }; 13 // error callback 14 ooba_error = function() { 15 $("<div class=\"alert alert-warning ooba_auth_error\" id=\"ooba_auth_error\">Pin could not be validated. Please enter new pin.</div>").appendTo($("#ooba_validate")); 16 $timeout(function() { 17 $('.ooba_auth_error').fadeOut('fast'); 18 }, 1500) 19 }; 20 21 // when user setup is available use this username to replace 'mbalusu' 22 //console.log("userName",scope.oobaUserInformation.userName); 23 loadOOBA(scope); 24 }, 500); 25 function loadOOBA(scope) { 26 if (keys && keys.access_token) { 27 OOBA.ooba_init('com_swapstech_star_ooba', scope.oobaUserInformation.oobaUserId, scope.oobaUserInformation.oobaEmail, scope.oobaUserInformation.oobaPhone, scope.oobaUserInformation.emailAddress, scope.oobaUserInformation.phoneNumber, ooba_success, ooba_error); 28 } else { 29 $timeout(function() { 30 loadOOBA(scope); 31 }, 500); 32 } 33 } 34 /**** 35 ** OOBA Integeration. 36 **/ 37 $scope.oobaVerifyCallBack = function(){ 38 $timeout(function(){ 39 $scope.pinVerified = true; 40 if(typeof $scope.pinVerifyCallBackRequired != "undefined"){ 41 $scope.pinVerifyCallBack(); 42 } 43 $scope.enterVerficationCode = false; 44 $scope.pendingVerification = false; 45 }); 46 47 48 } 49 $scope.oobaUserInformation = $rootScope.currentUser; 50 $timeout(function(){ 51 $scope.delay = true; 52 }, 200); 53 54}]); 55
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.