otp alert
This commit is contained in:
parent
3cfd132d9e
commit
6631bfcd9d
@ -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.";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user