public function test_verify() { $auth = new WaxAuthDb(array("encrypt" => false, "db_table" => "test_auth_user")); $auth->verify("test1", "password"); $this->assertTrue($auth->is_logged_in()); $auth->logout(); $this->assertFalse($auth->is_logged_in()); }
/** * Clears the session data via a call to the auth object - effectively logging you out **/ public function logout() { $auth = new WaxAuthDb(array("db_table" => $this->model_name, "session_key" => "wildfire_user_cookie")); $auth->logout(); $this->redirect_to($this->unauthorised_redirect); }