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

Captcha Work in Login Page, But Not on Registration Page... #40

Closed
midascodebreaker opened this issue Jul 5, 2016 · 1 comment
Closed

Comments

@midascodebreaker
Copy link

Its Odd, Captcha Works Perfectly on Login...
But on Registration which is Needed Most it Fails...

I got LoginRequest and SignUpRequest
both containing the rules and message for g-recaptcha-response

in my view , i use both this code

{!! app('captcha')->display() !!}
Illuminate\Support\ViewErrorBag {
  #bags: array:1 [
    "default" => Illuminate\Support\MessageBag {
      #messages: array:1 [
        "g-recaptcha-response" => array:1 [
          0 => "Captcha Verification Failed!"
        ]
      ]
      #format: ":message"
    }
  ]
}

This has really something to do with the captha property in Validator class....
Can someone help me fix this?

So i can use it on multiple pages?

@midascodebreaker
Copy link
Author

Got it fix by using a Post Request...
By Changing the Default Route provided by laravel...
in command php artisan make:auth

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

No branches or pull requests

1 participant