| Line 187... |
Line 187... |
| 187 |
//Check if activated feild is set or not.
|
187 |
//Check if activated feild is set or not.
|
| 188 |
if(!empty($mobilenumber['User']['activated'])) {
|
188 |
if(!empty($mobilenumber['User']['activated'])) {
|
| 189 |
$referrerRequired = false;
|
189 |
$referrerRequired = false;
|
| 190 |
} else {
|
190 |
} else {
|
| 191 |
$uid=$socialProfile['SocialProfile']['user_id'];
|
191 |
$uid=$socialProfile['SocialProfile']['user_id'];
|
| 192 |
$res = $this->SocialProfile->query("select * from user_docs where id=$uid");
|
192 |
$res = $this->SocialProfile->query("select * from user_docs where user_id=$uid");
|
| 193 |
$this->log("res-------".print_r($res,1),'registration');
|
193 |
$this->log("res".print_r($res,1),'registration');
|
| 194 |
$docsSubmitted = !empty($res);
|
194 |
$docsSubmitted = !empty($res);
|
| 195 |
}
|
195 |
}
|
| 196 |
$data['user_id'] = $socialProfile['SocialProfile']['user_id'];
|
196 |
$data['user_id'] = $socialProfile['SocialProfile']['user_id'];
|
| 197 |
$result = array('success' => true, 'message' => 'Existing Social Profile','id' => $socialProfile['SocialProfile']['user_id'],'mobileRequired'=>$mobileRequired,'referrerRequired'=>$referrerRequired);
|
197 |
$result = array('success' => true, 'message' => 'Existing Social Profile','id' => $socialProfile['SocialProfile']['user_id'],'mobileRequired'=>$mobileRequired,'referrerRequired'=>$referrerRequired);
|
| 198 |
}
|
198 |
}
|