captcha === null) { $this->captcha = oxNew('oeCaptcha'); } return $this->captcha; } public function createUser() { if(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('fnc') == 'approveOrder') { return parent::createUser(); } if (!$this->getCaptcha()->passCaptcha()) { return false; } return parent::createUser(); } }