// Is the refill page active?
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_filter'));
+ // Verify password
+ $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('account_password_filter'));
+
// Verify CAPTCHA code
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_refill_verifier_filter'));
// Verify refill request
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_request_validator_filter'));
+
+ // Prepare a filter based on the requested type we shall refill
+ $filterName = sprintf("refill_request_%s_book_filter", $requestInstance->getRequestElement('type'));
+
+ // Now, try to load that filter
+ $controllerInstance->addPostFilter(ObjectFactory::createObjectByConfiguredName($filterName));
}
}