Subversion Repositories SmartDukaan

Rev

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

Rev 18768 Rev 18831
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
		if(!empty($userId) && $tokenValidated==1){			
367
		if(!empty($userId) && $tokenValidated){			
368
			$url = $this->getAutoLoginUrl($userId,$url);
368
			$url = $this->getAutoLoginUrl($userId,$url);
369
	
369
	
370
			if(isset($this->request->data->pincode)){
370
			if(isset($this->request->data->pincode)){
371
				$pincode = $this->request->data->pincode;
371
				$pincode = $this->request->data->pincode;
372
			}
372
			}