ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Captcha Error: registration occasionally failing with word not recognized

November 07, 2007 6:33pm

Subscribe [4]
  • #16 / Mar 27, 2008 11:39am

    Richard Frank

    200 posts

    Please submit the code changes you made. I’m having a similar problem with Telkom SAIX in South Africa which uses a similar proxy service, I guess.

  • #17 / Mar 27, 2008 11:50am

    Robin Sowell's avatar

    Robin Sowell

    13218 posts

    I’m going to shift to ‘How to’ as hacks aren’t supported.  You might consider adding your support to a feature request, though.

    And from a quick look at it- to remove the ip check in comments, head to line 2524:

    /** ----------------------------------------
            /**  Do we require captcha?
            /** ----------------------------------------*/
            
    stuff….
                    else
                    {
                        $res = $DB->query("SELECT COUNT(*) AS count FROM exp_captcha WHERE word='".$DB->escape_str($_POST['captcha'])."' AND ip_address = '".$IN->IP."' AND date > UNIX_TIMESTAMP()-7200");
                    
                        if ($res->row['count'] == 0)
                        {
                            return $OUT->show_user_error('submission', $LANG->line('captcha_incorrect'));
                        }
                    
                        $DB->query("DELETE FROM exp_captcha WHERE (word='".$DB->escape_str($_POST['captcha'])."' AND ip_address = '".$IN->IP."') OR date < UNIX_TIMESTAMP()-7200");
                    }
                }
            }

    Basically?  Remove the ip bits from the two queries.  Make sense?

  • #18 / Mar 28, 2008 5:31am

    Richard Frank

    200 posts

    Yes, thanks. I will try it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases