diff --git a/Apollo/assets/js/controllers/dashboardCtrl.js b/Apollo/assets/js/controllers/dashboardCtrl.js old mode 100755 new mode 100644 diff --git a/Apollo/assets/js/controllers/loginCtrl.js b/Apollo/assets/js/controllers/loginCtrl.js old mode 100755 new mode 100644 index 9a2a5891..24be7a29 --- a/Apollo/assets/js/controllers/loginCtrl.js +++ b/Apollo/assets/js/controllers/loginCtrl.js @@ -115,7 +115,9 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc sessionStorage.setItem('localObj', JSON.stringify($scope.localStore)); sessionStorage.setItem('localsessionObj', JSON.stringify($scope.localStore)); - //console.log($scope.localStore); + // console.log('HTRG'); + // console.log(localsessionObj); + // return false; if($scope.responseData.ListCode=='R001'){ $state.go('app.studentView'); @@ -127,8 +129,10 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc } else{ // $window.location.reload(); + console.log('das') $state.go('app.dashboard'); + //$state.go('login.Login_pwdchange'); // $window.location.reload(); } @@ -239,6 +243,15 @@ $scope.EmpLogin=function(myModel) ipCookie('cookiechk', $scope.localStore, { expires: 21 }); sessionStorage.setItem('localObj', JSON.stringify($scope.localStore)); + + + sessionStorage.setItem('localsessionObj', JSON.stringify($scope.localStore)); + + // console.log('HTRG'); + // console.log(localsessionObj); + // return false; + + $state.go('app.dashboard'); } }