Subversion Repositories SmartDukaan

Rev

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

Rev 18734 Rev 18738
Line 362... Line 362...
362
		$cod = $this->request->query('cod');
362
		$cod = $this->request->query('cod');
363
		$userId = $this->request->query('user_id');
363
		$userId = $this->request->query('user_id');
364
		
364
		
365
		//Added token validation to ensure only user 
365
		//Added token validation to ensure only user 
366
	 	$tokenValidated = !Configure::read ( 'requireusercheck' ) || $this->checkToken($userId);
366
	 	$tokenValidated = !Configure::read ( 'requireusercheck' ) || $this->checkToken($userId);
367
	 	$this->log(print_r($tokenValidated),'ordersdet');
-
 
368
		if(!empty($userId) && $tokenValidated==1){			
367
		if(!empty($userId) && $tokenValidated==1){			
369
			$url = $this->getAutoLoginUrl($userId,$url);
368
			$url = $this->getAutoLoginUrl($userId,$url);
370
	
369
	
371
			if(isset($this->request->data->pincode)){
370
			if(isset($this->request->data->pincode)){
372
				$pincode = $this->request->data->pincode;
371
				$pincode = $this->request->data->pincode;