Page 1 of 1

Captcha not validating Captcha text

Posted: 20 Apr 2018, 16:44
by lynnStG
All,

My Captcha graphic is visible but user logins are not being validated against what is being shown in the captcha image. Can anyone please advise what my next steps should be? I'm using the following code in the login_password_page.php :

<?php
$t_allow_passwd_change = helper_call_custom_function( 'auth_can_change_password', array() );

# captcha image requires GD library and related option to ON
if( ON == config_get( 'signup_use_captcha' ) && get_gd_version() > 0 && $t_allow_passwd_change ) {
$t_securimage_path = 'vendor/dapphp/securimage';
$t_securimage_show = $t_securimage_path . '/securimage_show.php';
$t_securimage_play = $t_securimage_path . '/securimage_play.swf?'
. http_build_query( array(
'audio_file' => $t_securimage_path . '/securimage_play.php',
'bgColor1=' => '#fff',
'bgColor2=' => '#fff',
'iconColor=' => '#777',
'borderWidth=' => 1,
'borderColor=' => '#000',
) );
?>

<label for="captcha-field" class="block clearfix">
<strong><?php echo lang_get( 'signup_captcha_request_label' ); ?></strong>
</label>
<span id="captcha-input" class="input">
<?php print_captcha_input( 'captcha' ); ?>
<span id="captcha-image" class="captcha-image" style="padding-right:3px;">
<img src="<?php echo $t_securimage_show; ?>" alt="visual captcha" />
<ul id="captcha-refresh"><li><a href="#"><?php
echo lang_get( 'signup_captcha_refresh' );
?></a></li></ul>
</span>

<object type="application/x-shockwave-flash" width="19" height="19"
data="<?php echo $t_securimage_play; ?>">
<param name="movie" value="<?php echo $t_securimage_play; ?>" />
</object>
</span>

<?php

Thanks!
Lynn