anhskohbo / no-captcha

No CAPTCHA reCAPTCHA For Laravel.
https://packagist.org/packages/anhskohbo/no-captcha
MIT License
1.77k stars 234 forks source link

Validation always NOT CORRECT #70

Open jonjie0317 opened 7 years ago

jonjie0317 commented 7 years ago

I followed the installation and set up, but when I tried to do it correctly (Check the "Im not a robot"), it always says, The g-recaptcha-response field is required. What happened to that?

Need Help guys. btw Im using Laravel 5.1

Heres my code

Form:

<div class="form-group{{ $errors->has('g-recaptcha-response') ? ' has-error' : '' }}">
    {!! app('captcha')->display() !!}

    @if($errors->has('g-recaptcha-response'))
        <span class="help-block">
            {{ $errors->first('g-recaptcha-response') }}
        </span>
    @endif
</div>

===================================================================

Validation

'g-recaptcha-response' => 'required|captcha'

alvinbakker commented 7 years ago

Are you testing it on a Windows server, as I have the same problem when on WinServer, but no problems when using it on LAMP or Win10

josteph commented 6 years ago

The value is not passed to your server. Try to use Log for the request

MarlonRaphael commented 5 years ago

Eu segui a instalação e o configurei, mas quando tentei fazer isso corretamente (Marque a opção "Não sou um robô"), ele sempre diz: O campo g-recaptcha-response é obrigatório. O que aconteceu com aquilo?

Precisa de ajuda pessoal. Estou usando o Laravel 5.1

Heres meu código

Formato:

<div class="form-group{{ $errors->has('g-recaptcha-response') ? ' has-error' : '' }}">
  {!! app('captcha')->display() !!}

  @if($errors->has('g-recaptcha-response'))
      <span class="help-block">
          {{ $errors->first('g-recaptcha-response') }}
      </span>
  @endif
</div>

================================================== =================

Validação

'g-recaptcha-response' => 'required|captcha'

Aqui ocorre o mesmo =/