Commit 0e88ebab by Jansa Jose

Merge branch 'master' into 'local_production'

Master See merge request !167
parents dc8558bc e70cacc6
...@@ -42,6 +42,7 @@ class Customer_model extends CI_Model { ...@@ -42,6 +42,7 @@ class Customer_model extends CI_Model {
return 3; return 3;
} }
} }
$customer_data['is_otp_verified'] = 1;
$status = $this->db->insert('customers',$customer_data); $status = $this->db->insert('customers',$customer_data);
if($status && !empty($saved_vehicles) && !empty($cust_id = $this->db->insert_id())){ if($status && !empty($saved_vehicles) && !empty($cust_id = $this->db->insert_id())){
$this->db->query("UPDATE customer_vehicle SET status='1',customer_id='$cust_id' $this->db->query("UPDATE customer_vehicle SET status='1',customer_id='$cust_id'
......
...@@ -32,8 +32,8 @@ class Webservice_model extends CI_Model { ...@@ -32,8 +32,8 @@ class Webservice_model extends CI_Model {
} }
$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'],
'status'=>'1')); 'status'=>'1'));
$respArr['status'] = 3; $respArr['status'] = 3;
if(!empty($result) && $result->num_rows() == 1 && !empty($custData = $result->row())){ if(!empty($result) && $result->num_rows() == 1 && !empty($custData = $result->row())){
$authdata = $this->insert_auth($custData->id); $authdata = $this->insert_auth($custData->id);
......
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