locked
Problem in Implementation of reCAPTCHA in ASP.Net RRS feed

  • Question

  • User1058900923 posted

    Hi Guys Recently I downloaded reCAPTCHA .Net library and Integrated with my Project.

    I have the followings in my Form

    ·         3 textboxes

    ·         1 reCAPTACH Control

    ·         And a Button

    I applied Required field validators for all the textboxes..

    Problem is when I entered wrong CAPTCHA, and Submits the form, It shows CAPTCHA is valid!! :(

    So please explain me how t0 validate the user entered data for reCAPTCHA?

     

    Wednesday, February 2, 2011 7:27 AM

Answers

  • User-876955477 posted

    On one of my projects, I used the login control then added an event for authentication.

    protected void login_Authenticate(object sender, AuthenticateEventArgs e)
        {
            recaptcha.Validate();
            if (recaptcha.IsValid)
            {
                e.Authenticated = true;
            }
            else
            {
                e.Authenticated = false;
            }
    
        }

    You should also make sure that your reCaptcha private and public keys are correct.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 2, 2011 11:37 AM

All replies

  • User-876955477 posted

    On one of my projects, I used the login control then added an event for authentication.

    protected void login_Authenticate(object sender, AuthenticateEventArgs e)
        {
            recaptcha.Validate();
            if (recaptcha.IsValid)
            {
                e.Authenticated = true;
            }
            else
            {
                e.Authenticated = false;
            }
    
        }

    You should also make sure that your reCaptcha private and public keys are correct.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 2, 2011 11:37 AM
  • User1058900923 posted
    Thank you very much Dude!! it's working!!
    Wednesday, February 2, 2011 1:20 PM