Commit 40dc84ea by Jansa Jose

user login

parent c1e92dd5
...@@ -36,6 +36,7 @@ class Webservice_model extends CI_Model { ...@@ -36,6 +36,7 @@ class Webservice_model extends CI_Model {
$respArr['status'] = 2; $respArr['status'] = 2;
return $respArr; return $respArr;
} }
$this->db->select("customer_id as id,is_otp_verified,phone as phone_number,TRIM(CONCAT(first_name,' ' ,IFNULL(last_name,''))) as user_name"); $this->db->select("customer_id as id,is_otp_verified,phone as phone_number,TRIM(CONCAT(first_name,' ' ,IFNULL(last_name,''))) as user_name");
$result = $this->db->get_where('customers',array('email'=>$userLogData['email'], $result = $this->db->get_where('customers',array('email'=>$userLogData['email'],
'password'=>$userLogData['password'], 'password'=>$userLogData['password'],
...@@ -46,10 +47,10 @@ class Webservice_model extends CI_Model { ...@@ -46,10 +47,10 @@ class Webservice_model extends CI_Model {
$authdata = $this->insert_auth($custData->id); $authdata = $this->insert_auth($custData->id);
if($authdata){ if($authdata){
$custData->auth_token = $authdata; $custData->auth_token = $authdata;
}
}
$respArr['data'] = $custData; $respArr['data'] = $custData;
$respArr['status'] = 1; $respArr['status'] = 1;
}
}
return $respArr; return $respArr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment