| Line 293... |
Line 293... |
| 293 |
if(!empty($this->request->data['mobile_number']) && empty($this->request->data['mobile_verified'])) {
|
293 |
if(!empty($this->request->data['mobile_number']) && empty($this->request->data['mobile_verified'])) {
|
| 294 |
$options = array('conditions'=>array('User.id'=>$id),'fields'=>array('mobile_number'),'recursive'=>-1);
|
294 |
$options = array('conditions'=>array('User.id'=>$id),'fields'=>array('mobile_number'),'recursive'=>-1);
|
| 295 |
$oldMobile = $this->User->find('first',$options);
|
295 |
$oldMobile = $this->User->find('first',$options);
|
| 296 |
if($this->request->data['mobile_number'] != $oldMobile['User']['mobile_number']) {
|
296 |
if($this->request->data['mobile_number'] != $oldMobile['User']['mobile_number']) {
|
| 297 |
$this->request->data['mobile_verified'] = 0;
|
297 |
$this->request->data['mobile_verified'] = 0;
|
| - |
|
298 |
if($oldMobile['User']['activated']==0){
|
| - |
|
299 |
$this->request->data['status'] = 1;
|
| - |
|
300 |
}
|
| 298 |
}
|
301 |
}
|
| - |
|
302 |
|
| 299 |
}
|
303 |
}
|
| 300 |
if(!empty($this->request->data['referrer'])) {
|
304 |
if(!empty($this->request->data['referrer'])) {
|
| 301 |
$referrer = $this->request->data['referrer'];
|
305 |
$referrer = $this->request->data['referrer'];
|
| 302 |
$this->log(print_r($referrer,1),'activations');
|
306 |
$this->log(print_r($referrer,1),'activations');
|
| 303 |
$this->loadModel('ActivationCode');
|
307 |
$this->loadModel('ActivationCode');
|