+
[{if $oCaptcha->isImageVisible()}]
diff --git a/controllers/oecaptchaforgotpwd.php b/controllers/oecaptchaforgotpwd.php
new file mode 100644
index 0000000..7158f89
--- /dev/null
+++ b/controllers/oecaptchaforgotpwd.php
@@ -0,0 +1,44 @@
+getCaptcha()->passCaptcha()) {
+ return false;
+ }
+
+ return parent::forgotpassword();
+ }
+
+ /**
+ * Template variable getter. Returns object of handling CAPTCHA image
+ *
+ * @return object
+ */
+ public function getCaptcha()
+ {
+ if ($this->captcha === null) {
+ $this->captcha = oxNew('oeCaptcha');
+ }
+
+ return $this->captcha;
+ }
+
+}
diff --git a/controllers/oecaptchanewsletter.php b/controllers/oecaptchanewsletter.php
new file mode 100644
index 0000000..caf7000
--- /dev/null
+++ b/controllers/oecaptchanewsletter.php
@@ -0,0 +1,44 @@
+getCaptcha()->passCaptcha()) {
+ return false;
+ }
+
+ return parent::send();
+ }
+
+ /**
+ * Template variable getter. Returns object of handling CAPTCHA image
+ *
+ * @return object
+ */
+ public function getCaptcha()
+ {
+ if ($this->captcha === null) {
+ $this->captcha = oxNew('oeCaptcha');
+ }
+
+ return $this->captcha;
+ }
+
+}
diff --git a/metadata.php b/metadata.php
index 33ce471..062f6f5 100755
--- a/metadata.php
+++ b/metadata.php
@@ -39,7 +39,9 @@ $aModule = array(
'email' => '',
'extend' => array('details' => 'oe/captcha/controllers/oecaptchadetails',
'contact' => 'oe/captcha/controllers/oecaptchacontact',
+ 'forgotpwd' => 'oe/captcha/controllers/oecaptchaforgotpwd',
'invite' => 'oe/captcha/controllers/oecaptchainvite',
+ 'newsletter' => 'oe/captcha/controllers/oecaptchanewsletter',
'pricealarm' => 'oe/captcha/controllers/oecaptchapricealarm',
'suggest' => 'oe/captcha/controllers/oecaptchasuggest',
'oxwarticledetails' => 'oe/captcha/application/component/widget/oecaptchawarticledetails'),
@@ -52,9 +54,11 @@ $aModule = array(
),
'blocks' => array(
array('template' => 'form/contact.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'),
+ array('template' => 'form/newsletter.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'),
array('template' => 'form/privatesales/invite.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'),
array('template' => 'form/pricealarm.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'),
array('template' => 'form/suggest.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'),
+ array('template' => 'form/forgotpwd_email.tpl', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form_forgotpwd.tpl'),
),
'settings' => array(
array('group' => 'main', 'name' => 'oecaptchakey', 'type' => 'str', 'value' => ''),