Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not works with laravel auth #56

Closed
rolandverner opened this issue Dec 23, 2017 · 7 comments
Closed

not works with laravel auth #56

rolandverner opened this issue Dec 23, 2017 · 7 comments
Labels

Comments

@rolandverner
Copy link

i try to put the recaptha to registration and that not works with it

@albertcht
Copy link
Owner

Hi @rolandverner ,

Please provide more detail information for clarifying your question. For example, the web console message or the partial code how you use this package in your view.

@rolandverner
Copy link
Author

rolandverner commented Dec 23, 2017

image
image
image
image

And nothing looks like only reload the page

image

@albertcht
Copy link
Owner

Hi @rolandverner ,

According to your screenshots, the captcha has been successfully loaded because the badge logo is shown on your right-bottom side.

You can dump your form data on the backend to check if there's a g-recaptcha-response field. If yes, that means the captcha works properly.

@rolandverner
Copy link
Author

rolandverner commented Jan 7, 2018

it still not works on laravel auth
I reinstall laravel and invisible recaptha and it not help, on other forms it works great

@rolandverner
Copy link
Author

Can be that it have some conflict with other packages?

@albertcht
Copy link
Owner

There's a full laravel boilerplate project you can refer to:
https://github.com/Labs64/laravel-boilerplate

That boilerplate project integrates this package in its registration page and use laravel auth as well.

@alariva
Copy link

alariva commented May 15, 2018

Be aware that captcha error is silent if validation messages are not printed.

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

So maybe is just the captcha check what is failing, possibly due to bad site/secret key.
It happened to me (as silly as it seems) that before copy-paste my double-click selection excluded the very last character (for example a - symbol), and it can pass unnoticed. Make sure you are performing tests with the very right keys configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants