course details changes done
This commit is contained in:
parent
bdc3833b66
commit
268e49118a
@ -50,7 +50,7 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
|
|||||||
$http(req).then(function (response) {
|
$http(req).then(function (response) {
|
||||||
if (response.data.loginStatus == true) {
|
if (response.data.loginStatus == true) {
|
||||||
$scope.responseData = response.data.details;
|
$scope.responseData = response.data.details;
|
||||||
// {"loginStatus":true,"details":{"MobileNumber":"9876543210","ListCode":"R004","ID":"1"}}
|
|
||||||
/*
|
/*
|
||||||
* After logined user details store to local client detail
|
* After logined user details store to local client detail
|
||||||
*/
|
*/
|
||||||
@ -64,7 +64,14 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
|
|||||||
}
|
}
|
||||||
ipCookie('cookiechk', $scope.localStore, { expires: 21 });
|
ipCookie('cookiechk', $scope.localStore, { expires: 21 });
|
||||||
localStorage.setItem('localObj', JSON.stringify($scope.localStore));
|
localStorage.setItem('localObj', JSON.stringify($scope.localStore));
|
||||||
$state.go('app.dashboard');
|
if($scope.responseData.ListCode=='R001'){
|
||||||
|
$state.go('app.studentView');
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$state.go('app.dashboard');
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// alert(response.data.message);
|
// alert(response.data.message);
|
||||||
swal("Warning!", response.data.message, "warning");
|
swal("Warning!", response.data.message, "warning");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user