miroir de
https://git.d3data.de/3rdParty/captcha-module.git
synchronisé 2024-10-31 20:34:38 +01:00
40 lignes
740 B
PHP
40 lignes
740 B
PHP
<?php
|
|
/**
|
|
* #PHPHEADER_OECAPTCHA_LICENSE_INFORMATION#
|
|
*/
|
|
|
|
/**
|
|
* Article detailed information widget.
|
|
*/
|
|
class oeUserComponent extends oeUserComponent_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;
|
|
}
|
|
|
|
public function createUser()
|
|
{
|
|
if (!$this->getCaptcha()->passCaptcha()) {
|
|
return false;
|
|
}
|
|
|
|
return parent::createUser();
|
|
}
|
|
}
|