load->helper('hlp_message'); } /** * Checks if username and password of a final user are valid */ public function getCheckByUsernamePassword() { $username = $this->get('username'); $password = $this->get('password'); if (isset($username) && isset($password)) { $result = $this->authlib->checkUserAuthByUsernamePassword($username, $password); $this->response($result, REST_Controller::HTTP_OK); } else { $this->response(); } } }