EOAuthService.php
protected function restoreCredentials() {
		if (!$this->authenticated) {
			if ($this->hasState('auth_consumer') && $this->hasState('auth_token')) {
				$this->auth->getProvider()->consumer = $this->getState('auth_consumer');
				$this->auth->getProvider()->token = $this->getState('auth_token');
				$this->authenticated = true;
			}
			else {
				$this->authenticated = false;
			}
		}

		return $this->authenticated;
	}
protected function restoreCredentials() {
		if (!$this->authenticated) {
			if ($this->hasState('auth_consumer') && $this->hasState('auth_token')) {
				$this->auth->getProvider()->consumer = $this->getState('auth_consumer');
				$this->auth->getProvider()->token = $this->getState('auth_token');
				$this->authenticated = true;
			}
			else {
				$this->authenticated = false;
			}
		}

		return $this->authenticated;
	}
protected function restoreCredentials ( ) { if ( ! $ this -> authenticated ) { if ( $ this -> hasState ( 'auth_consumer' ) && $ this -> hasState ( 'auth_token' ) ) { $ this -> auth -> getProvider ( ) -> consumer = $ this -> getState ( 'auth_consumer' ) ; $ this -> auth -> getProvider ( ) -> token = $ this -> getState ( 'auth_token' ) ; $ this -> authenticated = true ; } else { $ this -> authenticated = false ; } } return $ this -> authenticated ; }
Restore access credentials from the session.

@return boolean whether the access credentials were successfully restored.
Restore access credentials from the session .