public function test_encrypted_login() { $this->model->update_attributes($this->get_fixture("encrypteduser")); $auth = new WaxAuthDb(array("encrypt" => true, "db_table" => "test_auth_user")); $auth->verify("encrypted", "password"); $this->assertTrue($auth->is_logged_in()); }
/** * check to see if admin is logged in * @return boolean */ public function is_admin_logged_in() { $user = new WaxAuthDb(array("db_table" => "wildfire_user", "encrypt" => "false", "session_key" => "wildfire_user_cookie")); return $user->is_logged_in(); }