[TYPO3-formidable] Captcha - Reaching maximum number of attempts
dpino
dpino at igalia.com
Wed Feb 22 14:44:11 CET 2012
Hello,
I've been using the Catpcha Renderlet recently, and it happened that
some times instead of the image with the captcha an image with the
following message was shown: "ERREUR: Dépassement du nombre maximum de
cryptogrammes".
I took a look at the code and saw that this error is shown when the
user reaches the maximum number of attempts
(rdt_captcha/res/lib/cryptographp.inc.php:36):
if ($_SESSION['cryptcptuse']>=$cryptusemax) {
header("Content-type: image/png");
readfile('img/erreur1.png');
exit;
}
$cryptusemax is set at rdt_captcha/res/lib/config.inc.php:141:
$cryptusemax = $_SESSION["rdt_captcha"]["config"]["cryptusemax"];
and $_SESSION["rdt_captcha"]["config"]["cryptusemax"] is set at
rdt_captcha/api/class.tx_rdtcaptcha.php:506:
if(($sValue = $this->_navConf("/maxattempt")) !== FALSE) {
if(is_numeric($this->aElement["maxattempt"])){
$_SESSION["rdt_captcha"]["config"]["cryptusemax"] =
$this->aElement["maxattempt"];
}else{
$_SESSION["rdt_captcha"]["config"]["cryptusemax"] =
1000000000000000000;
}
}else{
$_SESSION["rdt_captcha"]["config"]["cryptusemax"] =
1000000000000000000;
}
I'm not defining any maxattempt value in my Renderlet, so I guess the
value of $_SESSION["rdt_captcha"]["config"]["cryptusemax"] is set to the
default (1000000000000000000), which is a very high value IMHO. Is it
possible to surpass this value? (my website is still not public), does
this happening to anybody before? what should I look into? Any feedback
will be highly appreciated.
Regards,
Diego
More information about the TYPO3-project-formidable
mailing list