*/
private $authMethod = "";
- /**
- * Instance for a request class
- */
- private $requestInstance = null;
-
// Exception constants
const EXCEPTION_INVALID_USER_INSTANCE = 0x080;
$this->authMethod = $this->getConfigInstance()->readConfig('auth_method_class');
}
- /**
- * Setter for request instance
- *
- * @param $requestInstance A Requestable class instance
- * @return void
- */
- public final function setRequestInstance (Requestable $requestInstance) {
- $this->requestInstance = $requestInstance;
- }
-
- /**
- * Getter for request instance
- *
- * @param
- * @return $requestInstance A Requestable class instance
- */
- public final function getRequestInstance () {
- return $this->requestInstance;
- }
-
/**
* Execute the login request by given response instance. This instance can
* be used for sending cookies or at least the session id out.
$loginInstance = ObjectFactory::createObjectByName($this->authMethod, array($responseInstance));
// Set user cookie
- $loginInstance->setUserAuth($this->requestInstance->getRequestElement('username'));
+ $loginInstance->setUserAuth($this->getRequestInstance()->getRequestElement('username'));
// Set password cookie
- $loginInstance->setPasswordAuth($this->requestInstance->getRequestElement('pass_hash'));
+ $loginInstance->setPasswordAuth($this->getRequestInstance()->getRequestElement('pass_hash'));
// Remember this login instance for later usage
Registry::getRegistry()->addInstance('login', $loginInstance);