diff --git a/Apollo/assets/js/controllers/loginCtrl.js b/Apollo/assets/js/controllers/loginCtrl.js index e61fae6e..4b4fa081 100755 --- a/Apollo/assets/js/controllers/loginCtrl.js +++ b/Apollo/assets/js/controllers/loginCtrl.js @@ -20,6 +20,8 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc $scope.icon = 'fa fa-lock'; $scope.show = false; $scope.info = false; + + $scope.loginbutton = true; $scope.responseData = ''; @@ -80,6 +82,7 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc if($scope.responseData == 'role check') { $scope.Empcheck = true; + $scope.loginbutton = false; swal("Your OTP is sent !", response.data.message); } @@ -276,11 +279,15 @@ $scope.EmpLogin=function(myModel) $scope.place = 'OTP'; $scope.icon = 'fa fa-key'; $scope.info = true; + + //swal("Your OTP is sent !", response.data.message); } else if(response.data.pwdcheck== true) { - console.log('in'); + //console.log('in'); + + $scope.loginbutton = true; // $scope.Empcheck = true; //$scope.typeInput = 'text'; diff --git a/Apollo/assets/views/login_login.html b/Apollo/assets/views/login_login.html index 23ff72d4..20ddbce4 100755 --- a/Apollo/assets/views/login_login.html +++ b/Apollo/assets/views/login_login.html @@ -404,7 +404,7 @@