1
uberrookie
max attemps captcha
  • 2011/4/9 19:11

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


xoops 2.5.0
In the function XoopsCaptcha::verify() it says:

} else if (!empty($maxAttempts) && ! empty($_SESSION["{$sessionName}_attempt"]) > $maxAttempts) {
            
$this->message[] = _CAPTCHA_TOOMANYATTEMPTS;
            
// Verify the code
        
}


The result of
(!empty($maxAttempts) && ! empty($_SESSION["{$sessionName}_attempt"])
is either 0 or 1 and never exceeds the $maxAttemps.

Shoudn't it be:
} else if ((!empty($maxAttempts) && ! empty($_SESSION["{$sessionName}_attempt"])) && ($_SESSION["{$sessionName}_attempt"] > $maxAttempts)) {


?

Login

Who's Online

155 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits