employee session storage
This commit is contained in:
parent
108f4349d5
commit
e19c600022
0
Apollo/assets/js/controllers/dashboardCtrl.js
Executable file → Normal file
0
Apollo/assets/js/controllers/dashboardCtrl.js
Executable file → Normal file
15
Apollo/assets/js/controllers/loginCtrl.js
Executable file → Normal file
15
Apollo/assets/js/controllers/loginCtrl.js
Executable file → Normal file
@ -115,7 +115,9 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
|
|||||||
sessionStorage.setItem('localObj', JSON.stringify($scope.localStore));
|
sessionStorage.setItem('localObj', JSON.stringify($scope.localStore));
|
||||||
sessionStorage.setItem('localsessionObj', 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'){
|
if($scope.responseData.ListCode=='R001'){
|
||||||
$state.go('app.studentView');
|
$state.go('app.studentView');
|
||||||
@ -127,8 +129,10 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// $window.location.reload();
|
// $window.location.reload();
|
||||||
|
console.log('das')
|
||||||
$state.go('app.dashboard');
|
$state.go('app.dashboard');
|
||||||
|
|
||||||
|
|
||||||
//$state.go('login.Login_pwdchange');
|
//$state.go('login.Login_pwdchange');
|
||||||
// $window.location.reload();
|
// $window.location.reload();
|
||||||
}
|
}
|
||||||
@ -239,6 +243,15 @@ $scope.EmpLogin=function(myModel)
|
|||||||
ipCookie('cookiechk', $scope.localStore, { expires: 21 });
|
ipCookie('cookiechk', $scope.localStore, { expires: 21 });
|
||||||
sessionStorage.setItem('localObj', JSON.stringify($scope.localStore));
|
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');
|
$state.go('app.dashboard');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user