Commit 7b6c9744 by Jansa Jose

J: checker Organiser SignIn changes

parent 11a6cadb
......@@ -465,7 +465,8 @@ class Organizer_model extends CI_Model {
$res = array('status'=>0,'message'=>'User Does not Exist','code'=>'ER09');
return $res;
}
$res = array('status'=>1,'message'=>'Logged In Successfully','data'=>$custData['id']);
$res = array('status'=>1,'message'=>'Logged In Successfully','data'=>array('user_id'=>$custData['id'],'user_type'=>(!empty($data['user_type']) && $data['user_type'] =='2')?$data['user_type']:'7'
));
} catch(Exception $e){
$res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06');
}
......@@ -530,7 +531,7 @@ class Organizer_model extends CI_Model {
set_time_limit(0);
$languages = getLanguages();
$err = 0;
$postData['seat_pricing'] = $postData['custom_seat_layout'] = '';
if(isset($postData['layout_type'],$postData['fare_type']) && $postData['layout_type'] == 1 && $postData['fare_type'] == 2){
$postData['custom_seat_layout'] = $postData['layout'];
......
......@@ -2326,8 +2326,14 @@ class Webservice_model extends CI_Model {
return $res;
}
public function authenticate(){
public function flight_authenticate($data){
try{
$user_id = $this->auth_token_get($data['auth_token']);
}catch(Exception $e){
$res = array('status'=>0,'message'=>'Ohh No!! Something Went South!!','code'=>'ER08');
}
return $res;
}
public function passToJsonCurl($url='',$postData=array()){
......@@ -2336,8 +2342,8 @@ class Webservice_model extends CI_Model {
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,json_encode($postData));
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_HTTPHEADER,array('Content-Type:application/json'));
$result = curl_exec($ch);
curl_close($ch);
......
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