CAPTCHA verifier added to refill page command
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebMoneyRefillFormCommand.php
index 31593a8393a04be60aaab3d655d96c91a81d96f1..1fa33d45905107b0ff6c423c05f147d9fe9715de 100644 (file)
@@ -72,7 +72,17 @@ class WebMoneyRefillFormCommand extends BaseCommand implements Commandable {
         * @return      void
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
-               $this->partialStub("Please implement this method.");
+               // Add user auth filter (we don't need an update of the user here because it will be redirected)
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_auth_class'));
+
+               // Add user status filter here
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_class'));
+
+               // Is the refill page active?
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_class'));
+
+               // Verify CAPTCHA code
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_refill_verifier_class'));
        }
 }