mirror of
https://git.d3data.de/3rdParty/captcha-module.git
synced 2024-11-21 06:03:11 +01:00
initial preparation for ticket https://support.shopmodule.com/scp/tickets.php?id=11765
This commit is contained in:
parent
477aef9b4a
commit
0dbb8fb6e3
@ -36,4 +36,13 @@ class oeUserComponent extends oeUserComponent_parent
|
|||||||
|
|
||||||
return parent::createUser();
|
return parent::createUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function changeuser_testvalues()
|
||||||
|
{
|
||||||
|
if (!$this->getCaptcha()->passCaptcha()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return parent::changeuser_testvalues();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
29
controllers/oecaptchaaccountuser.php
Normal file
29
controllers/oecaptchaaccountuser.php
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* #PHPHEADER_OECAPTCHA_LICENSE_INFORMATION#
|
||||||
|
*/
|
||||||
|
|
||||||
|
class oecaptchaaccountuser extends oecaptchaaccountuser_parent
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Class handling CAPTCHA image.
|
||||||
|
*
|
||||||
|
* @var object
|
||||||
|
*/
|
||||||
|
protected $captcha = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
}
|
79
metadata.php
79
metadata.php
@ -17,6 +17,10 @@
|
|||||||
/**
|
/**
|
||||||
* Metadata version
|
* Metadata version
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use OxidEsales\Eshop\Application\Component\UserComponent;
|
||||||
|
use OxidEsales\Eshop\Application\Controller\AccountUserController;
|
||||||
|
|
||||||
$sMetadataVersion = '1.1';
|
$sMetadataVersion = '1.1';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -45,9 +49,10 @@ $aModule = array(
|
|||||||
'pricealarm' => 'oe/captcha/controllers/oecaptchapricealarm',
|
'pricealarm' => 'oe/captcha/controllers/oecaptchapricealarm',
|
||||||
'suggest' => 'oe/captcha/controllers/oecaptchasuggest',
|
'suggest' => 'oe/captcha/controllers/oecaptchasuggest',
|
||||||
'oxwarticledetails' => 'oe/captcha/application/component/widget/oecaptchawarticledetails',
|
'oxwarticledetails' => 'oe/captcha/application/component/widget/oecaptchawarticledetails',
|
||||||
\OxidEsales\Eshop\Application\Component\UserComponent::class => 'oe/captcha/application/component/oeusercomponent',
|
UserComponent::class => 'oe/captcha/application/component/oeusercomponent',
|
||||||
'register' => 'oe/captcha/controllers/oecaptcharegister',
|
'register' => 'oe/captcha/controllers/oecaptcharegister',
|
||||||
'user' => 'oe/captcha/controllers/oecaptchauser'
|
'user' => 'oe/captcha/controllers/oecaptchauser',
|
||||||
|
AccountUserController::class => 'oe/captcha/controllers/oecaptchaaccountuser'
|
||||||
),
|
),
|
||||||
'files' => array(
|
'files' => array(
|
||||||
'oecaptcha' => 'oe/captcha/core/oecaptcha.php',
|
'oecaptcha' => 'oe/captcha/core/oecaptcha.php',
|
||||||
@ -58,21 +63,63 @@ $aModule = array(
|
|||||||
'oecaptcha_wave.tpl' => 'oe/captcha/application/views/tpl/oecaptcha_wave.tpl',
|
'oecaptcha_wave.tpl' => 'oe/captcha/application/views/tpl/oecaptcha_wave.tpl',
|
||||||
),
|
),
|
||||||
'blocks' => array(
|
'blocks' => array(
|
||||||
array('template' => 'form/contact.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'),
|
array('template' => 'form/contact.tpl',
|
||||||
array('template' => 'form/newsletter.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'),
|
'block'=>'captcha_form',
|
||||||
array('template' => 'form/privatesales/invite.tpl', 'theme' => 'flow', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form.tpl'),
|
'theme' => 'flow',
|
||||||
array('template' => 'form/pricealarm.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'),
|
'file'=>'/application/views/blocks/captcha_form.tpl'),
|
||||||
array('template' => 'form/suggest.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'),
|
array('template' => 'form/newsletter.tpl',
|
||||||
array('template' => 'form/forgotpwd_email.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form_forgotpwd.tpl'),
|
'block'=>'captcha_form',
|
||||||
array('template' => 'form/fieldset/user_billing.tpl', 'block'=>'captcha_form', 'theme' => 'flow', 'file'=>'/application/views/blocks/captcha_form.tpl'),
|
'theme' => 'flow',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form.tpl'),
|
||||||
|
array('template' => 'form/privatesales/invite.tpl',
|
||||||
|
'theme' => 'flow',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form.tpl'),
|
||||||
|
array('template' => 'form/pricealarm.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'flow',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form.tpl'),
|
||||||
|
array('template' => 'form/suggest.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'flow',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form.tpl'),
|
||||||
|
array('template' => 'form/forgotpwd_email.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'flow',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form_forgotpwd.tpl'),
|
||||||
|
array('template' => 'form/fieldset/user_billing.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'flow',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form.tpl'),
|
||||||
|
|
||||||
array('template' => 'form/contact.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_contact_wave.tpl'),
|
array('template' => 'form/contact.tpl',
|
||||||
array('template' => 'form/newsletter.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_newsletter_wave.tpl'),
|
'block'=>'captcha_form',
|
||||||
array('template' => 'form/privatesales/invite.tpl', 'theme' => 'wave', 'block'=>'captcha_form', 'file'=>'/application/views/blocks/captcha_form_wave.tpl'),
|
'theme' => 'wave',
|
||||||
array('template' => 'form/pricealarm.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_wave.tpl'),
|
'file'=>'/application/views/blocks/captcha_form_contact_wave.tpl'),
|
||||||
array('template' => 'form/suggest.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_wave.tpl'),
|
array('template' => 'form/newsletter.tpl',
|
||||||
array('template' => 'form/forgotpwd_email.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_forgotpwd_wave.tpl'),
|
'block'=>'captcha_form',
|
||||||
array('template' => 'form/fieldset/user_billing.tpl', 'block'=>'captcha_form', 'theme' => 'wave', 'file'=>'/application/views/blocks/captcha_form_user_billing_wave.tpl'),
|
'theme' => 'wave',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form_newsletter_wave.tpl'),
|
||||||
|
array('template' => 'form/privatesales/invite.tpl',
|
||||||
|
'theme' => 'wave',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form_wave.tpl'),
|
||||||
|
array('template' => 'form/pricealarm.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'wave',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form_wave.tpl'),
|
||||||
|
array('template' => 'form/suggest.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'wave',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form_wave.tpl'),
|
||||||
|
array('template' => 'form/forgotpwd_email.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'wave',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form_forgotpwd_wave.tpl'),
|
||||||
|
array('template' => 'form/fieldset/user_billing.tpl',
|
||||||
|
'block'=>'captcha_form',
|
||||||
|
'theme' => 'wave',
|
||||||
|
'file'=>'/application/views/blocks/captcha_form_user_billing_wave.tpl'),
|
||||||
),
|
),
|
||||||
'settings' => array(
|
'settings' => array(
|
||||||
array('group' => 'main', 'name' => 'oecaptchakey', 'type' => 'str', 'value' => ''),
|
array('group' => 'main', 'name' => 'oecaptchakey', 'type' => 'str', 'value' => ''),
|
||||||
|
Loading…
Reference in New Issue
Block a user