Subversion Repositories SmartDukaan

Rev

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

Rev 15378 Rev 15583
Line 149... Line 149...
149
		}
149
		}
150
	}
150
	}
151
 
151
 
152
	public function redirecttosaholic() {
152
	public function redirecttosaholic() {
153
		$userId = $this->request->query('user_id');
153
		$userId = $this->request->query('user_id');
154
        $tokenValidated = $this->checkToken();
154
        $tokenValidated = $this->checkToken($userId);
155
        if(isset($userId) && !empty($userId) && $tokenValidated){
155
        if(isset($userId) && !empty($userId) && $tokenValidated){
156
                $next = "&next=/private-deals/1";
156
                $next = "&next=/private-deals/1";
157
                $redirectUrl = $this->getAutoLoginUrl($userId,$next);
157
                $redirectUrl = $this->getAutoLoginUrl($userId,$next);
158
                header('location:'.$redirectUrl);
158
                header('location:'.$redirectUrl);
159
                exit();
159
                exit();