| Line 313... |
Line 313... |
| 313 |
$userAccount = $this->UserAccount->find('first',$options);
|
313 |
$userAccount = $this->UserAccount->find('first',$options);
|
| 314 |
$suserId = $userAccount['UserAccount']['account_key'];
|
314 |
$suserId = $userAccount['UserAccount']['account_key'];
|
| 315 |
$url = Configure::read('saholicapihost')."/register!activateRsa?userId=$suserId&activationCode=$referrer";
|
315 |
$url = Configure::read('saholicapihost')."/register!activateRsa?userId=$suserId&activationCode=$referrer";
|
| 316 |
$response = $this->make_request ( $url, null );
|
316 |
$response = $this->make_request ( $url, null );
|
| 317 |
$this->log(print_r($response,1),'mydetails');
|
317 |
$this->log(print_r($response,1),'mydetails');
|
| 318 |
if(empty($response['map']['isError'])){
|
318 |
if(!empty($response['map']['isError'])){
|
| 319 |
$result = array('success'=>false,'message'=> 'Technical error occurred, please try again after some time');
|
319 |
$result = array('success'=>false,'message'=> 'Technical error occurred, please try again after some time');
|
| 320 |
$updateRequired=false;
|
320 |
$updateRequired=false;
|
| 321 |
}
|
321 |
}
|
| 322 |
if(!empty($response['map']['result'])){
|
322 |
if(!empty($response['map']['result'])){
|
| 323 |
$this->request->data['activated'] = 1;
|
323 |
$this->request->data['activated'] = 1;
|