Jump to content


Photo

Problems with Captchas


  • Please log in to reply
2 replies to this topic

#1 Leomachogrande

Leomachogrande

    Etomite Forum Newbie

  • Member
  • 21 posts

Posted 15 November 2008 - 10:02 PM

I have some Problems with Captchas in Etomite 0.6.1.

The variable $_SESSION['captchaNumber'] is not set during the Generation of the Captcha. Therefore it's not possible to validate the captcha.
I checked the Sourcecode but didn't find any mistake. If a set it manualy during a snipped it works, but in the captcha-generation its not set (even trying a static value didn't work).

Has anyone encountered the same problem and has even a solution?

THX!

#2 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 15 November 2008 - 10:08 PM

If memory serves me correctly, the getCaptchaNumber function hasn't been improved as much as getCaptchaCode has... However, it may have been fixed in v1.x and it would be well worth the effort to upgrade...

#3 Cris D.

Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts

Posted 21 November 2008 - 08:58 AM

However, it may have been fixed in v1.x and it would be well worth the effort to upgrade...


This was reported as fixed for V0.6.1.5 in the bug tracker:
http://www.etomite.c...?cmd=view&id=12

However, this is the function from V1.1:

function getCaptchaNumber($length, $alt='Captcha Number', $title='Security Code') {
// returns a Captcha Number image to caller and stores value in $_SESSION['captchNumber']
// $length = number of digits to return
// $alt = alternate text if image cannot be displayed
// $title = message to display for onhover event
if($length < 1) return false;
return '<img src="./manager/includes/captchanumbers/captchaNumber.php?size='.$length.'" alt="'.$alt.'" title="'.$title.'" />';
}
It looks like the solution did not flow through to V1.0+




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users