From: Roland Häder Date: Sat, 16 Aug 2008 23:13:03 +0000 (+0000) Subject: CAPTCHA verifier added to refill page command X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=commitdiff_plain;h=56f0aa24e669fe3789c7a6f9eabfb6c91a19c181;hp=e750ef84ad2c3ad5b69c25eb7a1f5874a7869833 CAPTCHA verifier added to refill page command --- 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')); } }