From 56f0aa24e669fe3789c7a6f9eabfb6c91a19c181 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 16 Aug 2008 23:13:03 +0000 Subject: [PATCH] CAPTCHA verifier added to refill page command --- application/ship-simu/config.php | 3 +++ .../main/commands/web/class_WebMoneyRefillFormCommand.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/application/ship-simu/config.php b/application/ship-simu/config.php index 27ff4d9..75e555d 100644 --- a/application/ship-simu/config.php +++ b/application/ship-simu/config.php @@ -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"); diff --git a/application/ship-simu/main/commands/web/class_WebMoneyRefillFormCommand.php b/application/ship-simu/main/commands/web/class_WebMoneyRefillFormCommand.php index 06e2e31..1fa33d4 100644 --- a/application/ship-simu/main/commands/web/class_WebMoneyRefillFormCommand.php +++ b/application/ship-simu/main/commands/web/class_WebMoneyRefillFormCommand.php @@ -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')); } } -- 2.30.2