Commit ae5d7bb1 by Jansa Jose

change social login

parent 56c7c3b0
......@@ -2838,11 +2838,11 @@
$msg = 'Provide Registartion type';
}
if($postData['isRegistration'] == '1'){
if(!isset($postData['data']['phone']) || empty($postData['data']['phone'])){
if(!isset($postData['phone']) || empty($postData['phone'])){
$err = 1;
$msg = 'Provide a Phone Number';
}
else if(!isset($postData['data']['country_code']) || empty($postData['data']['country_code'])){
else if(!isset($postData['country_code']) || empty($postData['country_code'])){
$err = 1;
$msg = 'Provide a Country code';
}
......@@ -2852,8 +2852,8 @@
echo json_encode($respArr);exit;
}
$postData['profile_image'] = NULL;
$postData['phone'] = (isset($postData['data']['phone']) && !empty($postData['data']['phone']))?$postData['data']['phone']:'';
$postData['country_code'] = (isset($postData['data']['country_code']) && !empty($postData['data']['country_code']))?$postData['data']['country_code']:'';
$postData['phone'] = (isset($postData['phone']) && !empty($postData['phone']))?$postData['phone']:'';
$postData['country_code'] = (isset($postData['country_code']) && !empty($postData['country_code']))?$postData['country_code']:'';
if(isset($postData['data']['profileImg']) && !empty($postData['data']['profileImg'])){
$imageData = file_get_contents($postData['data']['profileImg']);
$userlImg = 'assets/uploads/services/userImg_'.time().'.jpg';
......
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