diff --git a/Apollo/assets/js/controllers/loginCtrl.js b/Apollo/assets/js/controllers/loginCtrl.js index 908198ee..e61fae6e 100755 --- a/Apollo/assets/js/controllers/loginCtrl.js +++ b/Apollo/assets/js/controllers/loginCtrl.js @@ -190,7 +190,7 @@ $scope.EmpLogin=function(myModel) $http(verify).then(function (response) { - + // console.log(response.data.loginStatus) if (response.data.loginStatus == true) { if (response.data.loginStatus == true) @@ -214,10 +214,17 @@ $scope.EmpLogin=function(myModel) $state.go('app.dashboard'); } } + + else + { + swal("Error!", response.data.message, "error"); + + } }); + // } }