/** Checks Credentials of user * @param $username * @param $password * @return bool|\ResultLogin */ public function checkCredentials($username, $password) { $this->ePSFacade->setUsername($username); $this->ePSFacade->setPassword($password); try { return $this->ePSFacade->login(); } catch (\ClientException $ce) { return FALSE; } catch (\ServerException $se) { return FALSE; } }
/** * Sets EPS Facade Login */ protected function setLogin() { $this->connection = $this->eps_facade->login(); return $this; }