CAPTCHA verifier added to refill page command
authorRoland Häder <roland@mxchange.org>
Sat, 16 Aug 2008 23:13:03 +0000 (23:13 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 16 Aug 2008 23:13:03 +0000 (23:13 +0000)
application/ship-simu/config.php
application/ship-simu/main/commands/web/class_WebMoneyRefillFormCommand.php

index 27ff4d9..75e555d 100644 (file)
@@ -151,6 +151,9 @@ $cfg->setConfigEntry('captcha_user_verifier_class', "GraphicalCodeCaptchaVerifie
 // CFG: CAPTCHA-REGISTER-VERIFIER-CLASS
 $cfg->setConfigEntry('captcha_register_verifier_class', "GraphicalCodeCaptchaVerifierFilter");
 
+// CFG: CAPTCHA-REFILL-VERFIER-CLASS
+$cfg->setConfigEntry('captcha_refill_verifier_class', "GraphicalCodeCaptchaVerifierFilter");
+
 // CFG: CONFIRM-CODE-VALIDATOR-CLASS
 $cfg->setConfigEntry('confirm_code_verifier_class', "ConfirmCodeVerifierFilter");
 
index 06e2e31..1fa33d4 100644 (file)
@@ -80,6 +80,9 @@ class WebMoneyRefillFormCommand extends BaseCommand implements Commandable {
 
                // Is the refill page active?
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_class'));
+
+               // Verify CAPTCHA code
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('captcha_refill_verifier_class'));
        }
 }