greggilbert / recaptcha

[ABANDONED] reCAPTCHA Validator for Laravel 5
MIT License
713 stars 196 forks source link

Requesting help with Zizaco/Confide integration due to error #24

Closed kz closed 10 years ago

kz commented 10 years ago

Hi there. I've come here to seek a potential solution to an issue I have. I am running Laravel 4 with the packages: https://github.com/Zizaco/confide and https://github.com/greggilbert/recaptcha

All the code was fine up to when I added the reCAPTCHA package. When I did, I received this error: http://prntscr.com/478hzd

Here's how I added the package.

  1. Under /vendor/zizaco/confide/src/Zizaco/Confide/ConfideUser.php:
    public static $rules = array(
        'username' => 'required|alpha_dash|unique:users',
        'email' => 'required|email|unique:users',
        'password' => 'required|min:4|confirmed',
        'password_confirmation' => 'min:4',
        'recaptcha_response_field' => 'required|recaptcha', // I added this line.
    );
  1. Under /vendor/zizaco/confide/src/views/signup.php:
        <div class="form-group">
            {{ Form::captcha() }}
        </div>

I can confirm that the public and private keys are correct. Everything has been configured fine. Perhaps it may be that this is being coded incorrectly? Please let me know if you have any ideas. Many thanks.