Mirror von
https://git.d3data.de/3rdParty/captcha-module.git
synchronisiert 2024-08-21 15:21:45 +02:00
45 Zeilen
852 B
PHP
45 Zeilen
852 B
PHP
<?php
|
|
/**
|
|
* #PHPHEADER_OECAPTCHA_LICENSE_INFORMATION#
|
|
*/
|
|
|
|
class oeCaptchaForgotPwd extends oeCaptchaForgotPwd_parent
|
|
{
|
|
/**
|
|
* Class handling CAPTCHA image.
|
|
*
|
|
* @var object
|
|
*/
|
|
protected $captcha = null;
|
|
|
|
/**
|
|
* Composes and sends user written message, returns false if some parameters
|
|
* are missing.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function forgotpassword()
|
|
{
|
|
if (!$this->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;
|
|
}
|
|
|
|
}
|