Subversion Repositories SmartDukaan

Rev

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

Rev 18833 Rev 18834
Line 361... Line 361...
361
	 	$pincode = 0;
361
	 	$pincode = 0;
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
		$testCheck = !Configure::read('requireusercheck');
366
		$testCheck = Configure::read('requireusercheck');
367
		$tokenValidated = 0;
367
		$tokenValidated = 0;
368
		if($testCheck){
368
		if($testCheck){
369
			$tokenValidated =  1;
-
 
370
		}else{
-
 
371
			$tokenValidated = $this->checkToken($userId);
369
			$tokenValidated = $this->checkToken($userId);
-
 
370
		}else{
-
 
371
			$tokenValidated = 1;
372
		}
372
		}
373
	
373
	
374
		if(!empty($userId) && $tokenValidated){			
374
		if(!empty($userId) && $tokenValidated==1){			
375
			$url = $this->getAutoLoginUrl($userId,$url);
375
			$url = $this->getAutoLoginUrl($userId,$url);
376
	
376
	
377
			if(isset($this->request->data->pincode)){
377
			if(isset($this->request->data->pincode)){
378
				$pincode = $this->request->data->pincode;
378
				$pincode = $this->request->data->pincode;
379
			}
379
			}