Subversion Repositories SmartDukaan

Rev

Rev 13736 | Rev 13740 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13736 Rev 13739
Line 468... Line 468...
468
	    echo(json_encode($json));die;
468
	    echo(json_encode($json));die;
469
	}
469
	}
470
 
470
 
471
	public function skipmobileverification() {
471
	public function skipmobileverification() {
472
		$this->Session->write('skipmobileverification',1);
472
		$this->Session->write('skipmobileverification',1);
-
 
473
		$this->redirect(array('controller'=>'store_products','action'=>'mine',"?" => array( "user_id" => $this->Auth->User('id'))));
473
	}
474
	}
474
 
475
 
475
	public function reauthenticate($userId) {
476
	public function reauthenticate($userId) {
476
		$user = $this->User->read(null,$userId);
477
		$user = $this->User->read(null,$userId);
477
		$this->Auth->login($user['User']);
478
		$this->Auth->login($user['User']);
478
		$json = array('success'=>true);
479
		$json = array('success'=>true);
479
		$this->response->type('json');
480
		$this->response->type('json');
480
		$this->layout = 'ajax';
481
		$this->layout = 'ajax';
481
	    echo(json_encode($json));die;
482
		    echo(json_encode($json));die;
482
	}
483
	}
483
}
-
 
484
484
}
-
 
485