employee session storage

This commit is contained in:
venbatechnologies@gmail.com 2019-02-22 13:47:31 +05:30
parent 108f4349d5
commit e19c600022
2 changed files with 14 additions and 1 deletions

0
Apollo/assets/js/controllers/dashboardCtrl.js Executable file → Normal file
View File

15
Apollo/assets/js/controllers/loginCtrl.js Executable file → Normal file
View File

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