]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/commands/web/class_WebRefillFormCommand.php
Payment introduced, minor rewrites
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebRefillFormCommand.php
index 25869cf249f0c39811760840d886979d6b198f15..5cae379a6f29333aaab4ca0ebc6e201e3553723e 100644 (file)
@@ -82,11 +82,20 @@ class WebRefillFormCommand extends BaseCommand implements Commandable {
                // 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));
        }
 }