otp alert

This commit is contained in:
venbatechnologies@gmail.com 2019-01-10 15:31:55 +05:30
parent 3cfd132d9e
commit 6631bfcd9d
2 changed files with 3 additions and 3 deletions

View File

@ -463,7 +463,7 @@ class Login_model extends CI_Model
$result['loginStatus'] = false;
$result['loginemployee'] = false;
$result['checkemp'] = false;
$result['message'] = "Your login is de-activated or don't have login.";
$result['message'] = "Please Enter Correct Password.";
}

View File

@ -101,7 +101,7 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
swal("Warning!", response.data.message, "warning");
}
if(response.data.checkemp == false)
if(response.data.checkemp == true)
{
swal("Warning!", response.data.message, "warning");
}
@ -173,7 +173,7 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
$http(req).then(function(response){
//alert(otpcheck);
//console.log(response)
console.log(response)
if(otpcheck == undefined)
{
swal.close();